利用where语句可以对数据进行筛选

运算符 | 描述 | 例子 |
= | 等于 | where id = 1 |
\> | 大于 | where age > 10 |
< | 小于 | where age < 10 |
>= | 大于等于 | where age >= 10 |
<= | 小于等于 | where age <= 10 |
!= | 不等于 | where name != '老王' |

运算符 | 描述 | 例子 |
and | 并且 | where id = 1 and age > 10 |
or | 或者 | where id = 1 or age > 10 |
not | 取反 | where not id = 1 |


运算符 | 描述 | 例子 |
in | 在指定的非连续范围内 | where id in(1,3,5); |
between … and … | 在指定的连续范围内 | where id between 1 and 5; |


运算符 | 描述 | 例子 |
is null | 判断是否为空 | where name is null |
is not null | 判断是否不为空 | where name is not null |
注:null与''是不一样的







