读书人

获取非数目字的值

发布时间: 2012-11-06 14:07:00 作者: rapoo

获取非数字的值
我一个列是tinyint 发现有些是null.我想怎么获取不是数值的行。比如

col(列名,tinyint)
null
1
2
3
null

select * from table where col=null???
这样貌似获取不到...

[解决办法]
select * from table where col is null
[解决办法]
select * from table where col is null
[解决办法]
is null

读书人网 >Mysql

热点推荐