ASCII(str) : ASCII : String Functions MySQL TUTORIALS


MySQL TUTORIALS » String Functions » ASCII »

 

ASCII(str)


Returns 0 if str is the empty string.

Returns NULL if str is NULL.

ASCII() works for characters with numeric values from 0 to 255.

mysql>
mysql> SELECT ASCII('2');
+------------+
| ASCII('2'|
+------------+
|         50 |
+------------+
row in set (0.00 sec)

mysql> SELECT ASCII(2);
+----------+
| ASCII(2|
+----------+
|       50 |
+----------+
row in set (0.00 sec)

mysql>
mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo String Functions
» ASCII