Example: Implicit Conversion of VARBYTE to BLOB

Teradata Vantageā„¢ Data Types and Literals

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

Consider the following table definitions:

CREATE TABLE small_images 
  (id INTEGER
  ,image1 VARBYTE(30000)
  ,image2 VARBYTE(30000));
   
CREATE TABLE large_images 
  (id INTEGER
  ,image BLOB);

Teradata Database performs a VARBYTE to BLOB implicit conversion for the following INSERT statement:

INSERT large_images
SELECT id, image1 || image2
FROM small_images;