Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回数字所表示的 ASCII 码值的字符。
CHAR( integer-expression )
integer-expression 要转换成 ASCII 字符的数字。该数字必须在 0 到 255 范围内(含 0 和 255)。
VARCHAR
根据二进制排序顺序,返回的字符与当前数据库的字符集中提供的数字表达式相对应。
对于值大于 255 或小于 0 的整数表达式,CHAR 返回 NULL。
SQL/2008 服务商扩充。
以下语句返回值 Y:
Y
SELECT CHAR( 89 );