SET CHARSET Usage Notes - 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
  • SET CHARSET overrides the default character set used for communication between the application and the database at runtime.
  • Whether specified as character_set_name or as :character_set_name_variable, the character set name must be a valid character set identifier.
  • If used to identify the character set name rather than the character set code, character_set_name must be enclosed in apostrophes, based on the APOST/QUOTE preprocessor option setting.
  • If used to identify the character set name, :character_set_name_variable must follow the rules for SQL strings for the client language.
  • If used to identify the character set code, :character_set_name_variable must be defined as a small integer host variable.
  • Specification of the SET CHARSET statement does not affect preprocessor processing, only the data sent and retrieved from the database at execution time.