Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回一个整数,它包含字符串中第一个字符的 Unicode 代码点;如果第一个字符不是有效的编码,则返回 NULL。
UNICODE( nchar-string-expression )
nchar-string-expression 第一个字符将转换为整数的 NCHAR 字符串。
INT
SQL/2008 服务商扩充。
以下示例返回整数 65536:
SELECT UNICODE(UNISTR( '\u010000data' ));