怎么查为 null的数据啊. 有一表 id name1 a2 null3 b怎么查出表里面name字段为null的所有记录啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from table where name is null 恩,要用is null 不能用= select id,name from table where name is null select * from 表名 where [name] is null 也可以这样查询:select * from table where name =‘’ 除这个外都可以select * from table where name =‘’这个是查询为空的记录空记录!=null结贴吧 where isnull(name,':)') = ':)' 牵强一点说有两种数据为空的情况,一种就是在MMC中内容显示为<null>另一种就是什么都不显示的所以 ~——~where name is null or name='' select * from table where name is null 各位大侠、列出所有SQLServer2005系统存储过程和系统变量来吧! 大家帮忙看看这段存储过程,老是报错。找了半天了高手指点。 一个困扰我很长时间的问题 高手求救,删除重复记录问题? 已有SQL复制的问题,想请教一下改造为分布式数据库的可行性 test 定义索引的意义? sum()的问题 问一个别名做查询条件的语句应该怎么写,麻烦高手帮忙解答,在线等!!! 恢复数据库排它访问权!救救我把! 发现一个(我认为的)好东西,跟大家共享(转) 求关于视图的知识 谢谢!!!!!!
select *
from table
where name =‘’
select *
from table
where name =‘’这个是查询为空的记录
空记录!=null
结贴吧
另一种就是什么都不显示的
所以 ~——~
where name is null or name=''