您的位置:首页 > 数据库 > Oracle

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

2011-03-14 14:24 513 查看
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 字段名 <>''
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: