Example: DEFERRED MODE Processing of BLOBs Using the DEFERRED BY NAME Phrase - Teradata Database - Teradata Vantage NewSQL Engine

SQL Data Manipulation Language

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
fbo1512081269404.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™

The following example shows the use of the BY NAME phrase for deferred mode processing of large objects using BTEQ and BLOBs.

     CREATE TABLE tabf2 (
       i1 INTEGER,
       v1 VARCHAR(256));

     INSERT INTO tabf2 (1, 'c:\temp\data.dat');

     .SET INDICDATA ON
     .EXPORT INDICDATA FILE=scg0720.dat

     SELECT *
     FROM tabf;

     .EXPORT RESET

     CREATE TABLE tabb (
       i1 INTEGER,
       c1 BLOB);

     .IMPORT INDICDATA FILE=scg0720.dat

     USING (a INTEGER,
            b BLOB AS DEFERRED BY NAME)
     INSERT INTO tabb (:a, :b);