in的用法
select * from emp where sal in (1500,3000,5000)
等价于
select * from emp where sal =1500 or sal=3000 or sal=5000
select * from emp where sal not in (1500,3000,5000)
等价于
select * from emp where sal<> 1500 and sal<>3000 and sal<>5000
--数据库不等于有两种表示 != <>
--对或取反是并且 对并且取反是或

浙公网安备 33010602011771号