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拼接
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拼接