mysql中的操作符

1 算术运算符

+
-
*
/, div(整型除)
%, mod

2 比较运算符:结果总是1, 0或者NULL

=
<=>: null-safe等于, 两边都为null则返回1, 一边为null则返回0
<>,!=
<=
>=
>
<
is null
is not null
is
is not
between...and...
not between...and...
like
not like
regexp, rlike
not regexp
sounds like

3 逻辑运算符,运算结果总是TRUE, FALSE或NULL

not, !
and, &&
or, ||
xor

4 位操作运算符

~: 位取反
&: 位与
|: 位或
^:位异或
>>
<<
原文地址:https://www.cnblogs.com/noway-neway/p/5210642.html