16.20 - CHARACTER SET server_character_set - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24

If data_type is a character type, then this is the server character set used by data_type , otherwise you cannot specify anything.

The purpose of the CHARACTER SET clause is to influence the system-generated routines.

The CHARACTER SET clause causes the following things to occur when the system creates the distinct type named UDF_name:
  • The system-generated CAST routines are registered to cast to and cast from a character source type of the specified server character set.
  • The system-generated ORDERING routine is registered to map to a character source type of the specified server character set.
  • The system-generated tosql and fromsql TRANSFORM routines are registered to transform the UDT to and from a character source type of the specified server character set.

If you know that all database transactions occur in languages that can be expressed using the LATIN character set, specify LATIN. Otherwise, for example, if some or all transactions use non-LATIN or multibyte characters, specify UNICODE. See Teradata Vantage™ NewSQL Engine International Character Set Support, B035-1125.

You cannot specify a character server data set of KANJI1. Otherwise, the system returns an error to the requestor.