在MySQL中的运算符。
在MySQL中运算符的优先级。
高优先级 | := | 1 | ||, OR, XOR | 2 | &&, AND | 3 | BETWEEN, CASE, WHEN, THEN, ELSE | 4 | =, <=>, >=, >, <=, <, <>, !=, IS, LIKE, REGEXP, IN | 5 | | | 6 | & | 7 | <<, >> | 8 | -, + | 9 | *, /, DIV, %, MOD | 10 | ^ | 11 | - (unary minus), ~ (unary bit inversion) | 12 | !, NOT | 低优先级 | BINARY, COLLATE |