大家帮忙一个简单的查询
比如表A有a,b,c,d 4列,但是有可能某列是空的,目前要求是这样:select的时候,为空的不显示,不为空的全显示。
大家帮忙看按啊
[解决办法]
--只要a,b,c,d有一个为空就不显示
select * from a where a is not null and b is not null and c is not null and d is not null
发布时间: 2012-03-03 15:33:03 作者: rapoo
大家帮忙一个简单的查询
比如表A有a,b,c,d 4列,但是有可能某列是空的,目前要求是这样:select的时候,为空的不显示,不为空的全显示。
大家帮忙看按啊
[解决办法]
--只要a,b,c,d有一个为空就不显示
select * from a where a is not null and b is not null and c is not null and d is not null