Jump to: navigation, search

Mysql ORD

From w3cyberlearnings

Contents

MySQL ORD Function

This function returns the code of a character/string input.

Syntax ORD

  • Str: A character or string input
ORD(Str);

Example 1

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

Example 2

mysql> SELECT ORD('a');
+----------+
| ORD('a') |
+----------+
|       97 |
+----------+
1 row in set (0.00 sec)

Related Links


Navigation
Web
SQL
MISC
References