Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回字符串表达式中第一个字节的整数 ASCII 值。
ASCII( string-expression )
string-expression 字符串。
SMALLINT
如果字符串为空,则 ASCII 返回零。文字字符串必须用引号括起来。如果数据库字符集为多字节字符集,并且参数字符串的第一个字符包含一个以上的字节,则结果为 NULL。
以下语句返回值 90:
90
SELECT ASCII( 'Z' );