where 子句的条件表达式中可以使用的运算符:
一、比较运算符
= 代表等于。
<> 或 != 代表不等于。
>= 代表大于等于。
<= 代表小于等于。
> 代表大于
< 代表小于
二、逻辑运算符
and 代表 与 只有and 两边的条件都为真的时候,复合条件才为真,否则为假
or 代表 或
not 代表 非
三、其他运算符
in() 和 not in() 代表离散范围。在或者不在指定的值列表中
betwee a and b 代表连续范围。在或不在下限a 和上线b之间。
not between a and b
is null 和is not null 测试值是否为空
like 和not like 模糊查询