1、sql中 <> 含义与 != 相似,皆为不等于的意思

2、具体使用案例:
<1> !=

select * from t_student
where age !=12 and age !=23;

<2> <>

select * from t_student
where age <>'23'and age <>'12'

二者查询结果相同

3、tips
多个值使用and拼接

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐