The ASCII() function allows you to identify the numeric value of the first character in a string. : ASCII « String « SQL / MySQL






The ASCII() function allows you to identify the numeric value of the first character in a string.

    
mysql>
mysql>
mysql> SELECT ASCII('book');
+---------------+
| ASCII('book') |
+---------------+
|            98 |
+---------------+
1 row in set (0.00 sec)

mysql>

   
    
    
    
  








Related examples in the same category

1.Display an ASCII bar chart of the test score counts, convert the counts to strings of * characters
2.ASCII(SUBSTRING('database',1,1))