(转) sqlserver,mysql,db2,oracle中判断字段的值不为空

来源:互联网 发布:润桐数据 编辑:程序博客网 时间:2024/06/06 17:33

转载博文地址:http://blog.csdn.net/zhangkala/article/details/6248227
oracle中:

select distinct columnid from db2admin.yc_visitstat where columnid<>’ ’ and columnid is not null

select * from 表名 where 字段名<>’ ’ and 字段名 is not null

sqlserver,mysql,db2中:

select * from 表名 where 字段名 <>”

上一篇X-UA-Compatible,IE8 兼容模式
下一篇mysql设置utf8_unicode_ci字符集php页面输出??乱码的解决方法

0 0
原创粉丝点击