Example: Deferred Mode Processing of CLOBs Using the DEFERRED BY NAME Phrase - Advanced SQL Engine - Teradata Database

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
qtb1554762060450.ditamap
dita:ditavalPath
lze1555437562152.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 CLOBs.

     .SET INDICDATA ON

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

     INSERT INTO tabf (1, 'c:\temp\vconfig.txt');

     .EXPORT INDICDATA FILE=scg0720.dat

     SELECT *
     FROM tabf;

     .EXPORT reset

     CREATE TABLE tabc (
     i1 INTEGER,
     c1 CLOB);

     .IMPORT INDICDATA FILE=scg0720.dat

     USING (a INTEGER,
            b CLOB AS DEFERRED BY NAME)
     INSERT INTO tabc (:a, :b);