sqlserver的查询分析器
来源:百度知道 编辑:UC知道 时间:2024/05/25 02:33:57
我想用查询分析器查询在s表中的l列不为空的数据,l列中的为空的数据是用null显示的 怎么查询该列中不为null的数据 有没有高手指点一下。。。。
就是
select *
from s
where后面的怎么写有没有人指点下 谢谢
如果是s表列l列不为1的应该怎么表示呢
就是
select *
from s
where后面的怎么写有没有人指点下 谢谢
如果是s表列l列不为1的应该怎么表示呢
select * from s where i is not null --不为空写法
select * from s where i<>1 --不为1写法,1为整形变量
select * from s where i<>'1' --不为1写法,1为字符串变量
以上,希望对你有所帮助
加where 字段 is not null,这种方式在SQL中查询很实用!
select * from s where XX is no null and i<>1
select * from s where i is not null
select * from s where i is not null