加入收藏 | 设为首页 | 会员中心 | 我要投稿 广西网 (https://www.guangxiwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程 > 正文

MySQL不同于

发布时间:2021-03-06 08:19:16 所属栏目:编程 来源:网络整理
导读:我怎样才能做到这一点 select * from theuser where userid=1233 and active != 1 用正确的MySQL语法? active可以是NULL,0或1,我需要的是活动等于NULL或0,永远不等于1. 最佳答案 select * from theuser where userid=1233 and (active is null or active !=

我怎样才能做到这一点

select * from theuser where userid=1233 and active != 1

用正确的MySQL语法?

active可以是NULL,0或1,我需要的是活动等于NULL或0,永远不等于1.

最佳答案
select * from theuser where userid=1233 and (active is null or active != 1)

(编辑:广西网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!