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

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

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