加入收藏 | 设为首页 | 会员中心 | 我要投稿 鞍山站长网 (https://www.0412zz.com/)- 应用安全、运维、云计算、5G、云通信!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL不同于

发布时间:2021-03-06 03:44:34 所属栏目: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)

(编辑:鞍山站长网)

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

    推荐文章
      热点阅读