您的位置:首页 > 数据库 > MySQL

MySQL 查询中遇到的若干问题

2016-09-04 19:26 246 查看
mysql中查询字段为null或者不为null
在mysql中,查询某字段为空时,不可用 = null,
而是 is null,不为空则是 is not null 
select * from table where column isnull;
select * from table where column isnot null;

2.mysql 中从数据库2中的表2中查结果导入到数据库1中的数据表1

insert into db1.table1 (CUSTID, CUSTNAME) (select ID, NAME from   bd2.table2)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: