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

oracle条件不等于字符bug

2017-05-04 16:49 225 查看
1,在oracle中,条件若是不等于一个字符,假如用<>操作符,有查不到字段为null的记录,

例如:select t.*, t.rowid from table t where t.user_id='123456' and t.bank_bind_order_type<>'1',

解决 添加or条件 select t.*, t.rowid from tbale t where t.user_id='123456' and (t.bank_bind_order_type<>'1'or t.bank_bind_order_type is null)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle