日期:2014-05-18  浏览次数:20514 次

一个关于“不等于”的问题
一个表中的一个整形字段Display允许空值,我想查询出此字段不为1的所有数据,用Display <> 1只能查询出Display不为空的数据,为什么?

------解决方案--------------------
select * from table where display not in (select display from table where display = 1 )
------解决方案--------------------
select * from t where isnull(Display, ' ') <> 1

這個呢?