MySQL ASCII()函数


ASCII(str)函数返回字符串str第一个字符的ASCII码;如果strNULL则返回NULL

mysql> select ASCII('abcdefg');
+------------------+
| ASCII('abcdefg') |
+------------------+
|               97 |
+------------------+
1 row in set (0.00 sec)

mysql> select ASCII('A');
+------------+
| ASCII('A') |
+------------+
|         65 |
+------------+
1 row in set (0.00 sec)

如需转载,请注明出处;本文地址:https://www.perfcode.com/p/mysql-ascii-function.html