加入收藏 | 设为首页 | 会员中心 | 我要投稿 淮安站长网 (https://www.0517zz.com.cn/)- 数据开发、人脸识别、智能机器人、图像处理、语音技术!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL不同于

发布时间:2021-03-05 20:18:23 所属栏目: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)

(编辑:淮安站长网)

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

    热点阅读