读书人

如何样才能查找某列为空的表?

发布时间: 2012-01-19 20:57:58 作者: rapoo

怎么样才能查找某列为空的表?急!
RT```
有一张表 比如列名有 ID 和 姓名
怎么样才能查出条件为ID为空的表?

另外为什么我VB做了个按钮 比如“新建”不管按钮拉得多大,都会有显示不完全的bug(打开只显示“新”或“建”)?这个怎么弄呢?

[解决办法]
(1) select * from tablename where ID = null

(2) 从来没有遇到这个问题。Windows XP 下最好安装 VB6 SP6。
[解决办法]
where ID IS NULL
[解决办法]
select * from 表名 where id is null and 姓名 is not null
[解决办法]

探讨
就是ID为空 姓名有值的条件

[解决办法]
select * from 表名 where (isnull(id) or id="") and not (isnull([姓名]) or [姓名]="")

读书人网 >VB

热点推荐