首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

获取非数目字的值

2012-11-06 
获取非数字的值我一个列是tinyint 发现有些是null.我想怎么获取不是数值的行。比如col(列名,tinyint)null12

获取非数字的值
我一个列是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

热点排行