16.20.16.20 - 16.20 - Example: Implicit Conversion of VARBYTE to BLOB - Teradata Vantage NewSQL Engine

Teradata Vantage™ Data Types and Literals

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;