17.10 - Example: Implicit Conversion of VARBYTE to BLOB - 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)

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);

SQL Engine performs a VARBYTE to BLOB implicit conversion for the following INSERT statement:

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