17.10 - Example Query - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

The following query returns the numeric representation of the first character in the string 'hello' according to the ASCII character encoding scheme.

SELECT (ascii('hello') RETURNS INTEGER);

The output returned by the query is:

ascii('hello')
--------------
           104