Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 



ASCII Function

Description

The ASCII function returns the ASCII code of the most left character in numeric value. If an input string is NULL, NULL is returned.

This function supports single-byte character sets only. If a numeric value is entered, it is converted into character string and then the ASCII code of the most left character is returned.

Syntax

ASCII(str)

  • str : An input string
Example

SELECT ASCII('5');

53

SELECT ASCII('ab');

97