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

oracle 空字符'' 和Null

2016-03-25 17:25 260 查看
Oracle 查询

select * from user where user.id !='' or user.id != null

使用上述sql 查询user表中没有数据,

必须使用

select * from user where user.id is not null 才有数据

原因:Oracle中‘’不大小,对于null只能用is null 或则 is not ull
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: