Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - SQL 参考 » 使用 SQL » SQL 语言元素 » 运算符

 

运算符优先级

表达式的运算符优先级如下。列表顶部的运算符先于底部的运算符进行运算。

  1. 一元运算符(需要单操作数的运算符)

  2. &, |, ^, ~

  3. *, /, %

  4. +, -

  5. ||

  6. not

  7. and

  8. or

在一个表达式中使用一个以上的运算符时,建议使用圆括号显式设置运算顺序。