Syntax

 

<ordinal function> ::=

 

 

 

ORD ( <character value expression> )

 

 

Notes

 

The ORD function returns the ordinal value of the character passed by the argument.



 

The data type of the result is INTEGER.



 

If the argument is null, then the result is null.



 

 

Examples

 

Expression

 

Result

 

ORD('A')

65

ORD('a')

97

ORD('5')

53

 

 


 

Conformance

 

NexusDB extensions

-

ORD function