17.10 - Usage Notes - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1143-171K
Language
English (United States)

External Representation of VARBYTE

The following table lists the client representations for the Teradata SQL VARBYTE data type.

Define the length of the VARBYTE string as k, where 0 ≤ k ≤ n.

Client CPU Architecture Client Internal Data Format
IBM mainframe k + 2 bytes 16-bit SMALLINT (2 byte) length count k followed by k bytes of BYTE data.
  • UTS
  • RISC
  • Motorola 68000
  • WE 32000
  • Intel
k + 2 bytes 16-bit SMALLINT (2 byte) length count k followed by k bytes of BYTE data.