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

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » UltraLite SQL 参考 » UltraLite SQL 元素

 

UltraLite 中的表达式

通常采用列引用的形式,通过将数据与运算符或函数进行组合构成表达式。

语法
expression:
 case-expression
| constant
| [correlation-name.]column-name
| - expression
| expression operator expression
| ( expression )
| function-name ( expression, ... )
| if-expression
| special value
| input-parameter
参数
case-expression:
CASE expression
WHEN expression
THEN expression,...
[ ELSE expression ]
END
alternative form of case-expression:
CASE
WHEN search-condition
THEN expression,...
[ ELSE expression ]
END
constant:
 integer  | number  | string | host-variable
special-value:
 CURRENT { DATE  |  TIME  |  TIMESTAMP  }
| NULL
| SQLCODE
| SQLSTATE
if-expression:
IF condition
THEN expression
[ ELSE expression ]
ENDIF
input-parameter:
{ ? | :name [ : indicator-name ] }
operator:
{  +  |  -  |  *  |  /  |  ||  |  % }
另请参见

表达式中的常量
表达式中的列名称
IF 表达式
CASE 表达式
集合表达式
表达式中的子查询
输入参数
UltraLite 中的搜索条件