返回 "CustomerName" 中第一个字符的 ASCII 值:
SELECT ASCII(CustomerName) AS NumCodeOfFirstChar
FROM Customers;
亲自试一试 »
ASCII() 函数返回特定字符的 ASCII 值。
ASCII(
character)
Parameter | Description |
---|---|
character | Required. The character to return the ASCII value for. If more than one character is entered, it will only return the value for the first character |
工作于: | 从 MySQL 4.0 开始 |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!