MySQL不等于怎么写
月亮邮递员
2020-03-30 17:47:107402浏览 · 0收藏 · 0评论
MySQL不等于怎么写
MySQL中不等于使用<>和!=来表示。<> 与!=都是不等于的意思
区别:
1、<>在任何SQL中都起作用;
2、!=在sql2000中不兼容。
使用示例:
查询表中aa不等于1的数据:
select * from table where aa <> 1; select * from table where aa != 1;
推荐:MySQL教程
关注公众号,随时随地在线学习