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 函数 » SQL 函数 (A-D)

 

CHAR 函数 [String]

返回数字所表示的 ASCII 码值的字符。

语法
CHAR( integer-expression )
参数
  • integer-expression   要转换成 ASCII 字符的数字。该数字必须在 0 到 255 范围内(含 0 和 255)。

返回值

VARCHAR

注释

根据二进制排序顺序,返回的字符与当前数据库的字符集中提供的数字表达式相对应。

对于值大于 255 或小于 0 的整数表达式,CHAR 返回 NULL。

另请参见
标准和兼容性
  • SQL/2003   服务商扩充。

示例

以下语句返回值 Y。

SELECT CHAR( 89 );