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

MySQL差异于

发布时间:2021-03-06 05:38:11 所属栏目:编程 来源:网络整理
导读:我奈何才气做到这一点 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)

(编辑:湖南网)

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

    热点阅读