The ORD() operator returns the code point of a character in the current locale.


ORD( source STRING )
  1. source is a string expression.


The value returned by ORD() is the code point in the current locale of the character passed as argument.

Only the first character of the argument is evaluated.

When using UTF-8 with character length semantics, the ORD() operator returns the UNICODE code point of the character.

ORD() returns NULL if the argument passed is not valid.