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

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530
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.