Character Data Import Process - 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

Consider the following table definition:

     CREATE TABLE table_1 (
       cunicode  CHARACTER(10) CHARACTER SET UNICODE,
       clatin    CHARACTER(10) CHARACTER SET LATIN,
       csjis     CHARACTER(10) CHARACTER SET KANJISJIS);

Suppose the session character set is KanjiShift-JIS and you submit the following request:

     USING
      cunicode  (CHARACTER(10)),
      clatin    (CHARACTER(10)),
      csjis     (CHARACTER(10)),
      cgraphic  (GRAPHIC(10)),
      cgraphic2 (CHARACTER(10) CHARACTER SET GRAPHIC))
     INSERT INTO table_1(:cunicode, :clatin, :csjis);
The USING request modifier indicates that the data parcel contains the following:
  • 10 KanjiShift-JIS bytes for the Unicode column
  • 10 bytes for the Latin column
  • 10 bytes for the KanjiSJIS column
  • 20 bytes for the first GRAPHIC column
  • 20 bytes for the second GRAPHIC column

Individual fields in the data parcel are converted from the client form-of-use to the server form-of-use. After conversion, the first three fields are treated as Unicode literals and the last two fields are treated as GRAPHIC literals.

The column data is then converted to the target fields using implicit translation according to the rules listed in Implicit Character-to-Character Translation.

The conversion process is described by the following table.

Stage Process
Bytes Converted to Server Form-of-Use Bytes Treated as This Type of Literal Literal Converted to This Character Type Literal Stored in This Column
1 First 10 (1 - 10) UNICODE Not converted cunicode
2 Next 10 (11 - 20) UNICODE LATIN clatin
3 Next 10 (21-30) UNICODE KANJISJIS csjis
4 Next 20 (31 - 50) GRAPHIC GRAPHIC cgraphic
5 Last 20 (51 - 70) GRAPHIC GRAPHIC cgraphic2

The meaning of the USING clause is independent of the session character set.