ASCII(SUBSTRING('database',1,1)) : ASCII « String « SQL / MySQL






ASCII(SUBSTRING('database',1,1))

    
mysql>
mysql>
mysql> select ASCII(SUBSTRING('database',1,1));
+----------------------------------+
| ASCII(SUBSTRING('database',1,1)) |
+----------------------------------+
|                              100 |
+----------------------------------+
1 row in set (0.00 sec)

mysql>

   
    
    
    
  








Related examples in the same category

1.The ASCII() function allows you to identify the numeric value of the first character in a string.
2.Display an ASCII bar chart of the test score counts, convert the counts to strings of * characters