日期:2014-05-17  浏览次数:20940 次

如何在一个表中查询不为空的列,select * from 表名 where 列名 is not null 这个怎么查不出来,谢谢各位大侠
如何在一个表中查询不为空的列,select * from 表名 where 列名 is not null 这个怎么查不出来,谢谢各位大侠

------解决方案--------------------
select * from 表名 where 列名 is not null
查出的是该列不为空的N行数据
至于你说的想用 select * 查出不为空的'列',我想是无法实现的
------解决方案--------------------
引用楼主 aoxueyingyang1 的帖子:
如何在一个表中查询不为空的列,select * from 表名 where 列名 is not null 这个怎么查不出来,谢谢各位大侠