OCTET_LENGTH Function Syntax | VantageCloud Lake - OCTET_LENGTH Function Syntax - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
OCTET_LENGTH ( string_expression [, character_name ] )

Syntax Elements

string_expression
The character string for which the number of octets is required.
The data type of string_expression must be one of the following:
  • CHARACTER or VARCHAR
If the string_expression argument is null, the result is null.
character_name
The character set in which the result is to be returned. If character_set_name is not provided, the session character set is assumed.
If the string_expression argument is null, the result is null.
See the list of Teradata-provided character sets in the table in OCTET_LENGTH Usage Notes.