25.09.2015 Views

Teradata Parallel Data Pump

Teradata Parallel Data Pump Reference - Teradata Developer ...

Teradata Parallel Data Pump Reference - Teradata Developer ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3: <strong>Teradata</strong> T<strong>Pump</strong> Commands<br />

INSERT<br />

INSERT<br />

Purpose<br />

<strong>Teradata</strong> T<strong>Pump</strong> supports the <strong>Teradata</strong> SQL INSERT statement, which adds new rows to a<br />

table by directly specifying the row data to be inserted.<br />

Syntax<br />

INSERT tname .*<br />

;<br />

INS INTO ,<br />

VALUES ( :fieldname )<br />

,<br />

expression<br />

( cname )<br />

3021A026<br />

where<br />

Syntax Element<br />

tname<br />

cname<br />

fieldname<br />

expression<br />

Description<br />

Table that is to receive rows created from input data records<br />

If the table is not explicitly qualified by database name, the default database<br />

qualifies it.<br />

Column of the specified table that is to receive the value from a field of<br />

matching input records, where the value is identified by the corresponding<br />

entry in the fieldname list<br />

Field of an input record, whose value is given to a column of the specified table<br />

that is identified by the corresponding entry in the cname clause in this<br />

statement<br />

If this statement did not specify a cname, the object’s CREATE statement<br />

provides the corresponding column identifier. This assumes that all columns<br />

from the table correspond to those specified in the original CREATE<br />

statement.<br />

Alternative to the fieldname clause, an expression that includes one or more<br />

actual fieldnames as terms may instead be used<br />

Usage Notes<br />

The following notes describe how to use an INSERT statement following a DML command.<br />

An INSERT statement may also be used in the support environment; normal rules for INSERT<br />

are followed in that case.<br />

One way of specifying the applicable DML statements is to relate each field name to the name<br />

of the column to which the field’s data is applied. Another way tells <strong>Teradata</strong> T<strong>Pump</strong> to apply<br />

<strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference 157

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!