注册 登录
编程论坛 SQL Server论坛

[求助]一条查询语句

垃圾的沉默 发布于 2007-07-15 14:17, 541 次点击

query表 有a b c d e f 列.. 查询b 和c 等于空记录不要.

sql语句怎么写

6 回复
#2
bygg2007-07-15 14:30
select * from query where b=null and c=null
#3
垃圾的沉默2007-07-15 14:48

应该是b和c不等于空

#4
bygg2007-07-15 15:48
哦,那你实现了吧..
#5
墨岛2007-07-15 16:33
select * from query where b<>null and c<>null
#6
垃圾的沉默2007-07-15 16:36

多谢了..问题解决了..

#7
棉花糖ONE2007-07-16 14:43

is null 和is not null
不能用=或者<>

1