oracle条件不等于字符bug

来源:互联网 发布:淘宝个人网店怎么注册 编辑:程序博客网 时间:2024/05/16 08:23

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)


0 0
原创粉丝点击