我使用如下查询,sele * from tt where not empty(证书编号)
可以查询出有证书的人员;但是我用如下:
sele * from tt where not empty(证书编号) and 职业工种="计算机操作员" 这样一个查询,为什么查询的情况等于
sele * from tt where 职业工种="计算机操作员"
...全文
758打赏收藏
sele的问题
我使用如下查询,sele * from tt where not empty(证书编号) 可以查询出有证书的人员;但是我用如下: sele * from tt where not empty(证书编号) and 职业工种="计算机操作员" 这样一个查询,为什么查询的情况等于 sele * from tt where 职业工种="计算机操作员"
谢回复。
我得表字段有姓名、证书编号、职业;记录中有的有证书编号,有的没有证书编号(空值或null).
请教如何查询职业工种="计算机操作员"的有证书编号的记录。为什么empty(证书编号)不能过滤掉记录.
如果我得表中职业工种="计算机操作员"的记录,证书编号都不为空,但运行sele * from tt where not empty(证书编号) and 职业工种="计算机操作员" 发现有空值的情况,是不是null的关系不能用empty()?