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

MySQL不同于

发布时间:2021-03-06 15:34:52 所属栏目:MySql教程 来源:网络整理
导读:我怎样才能做到这一点 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)

(编辑:拼字网 - 核心网)

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