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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

DELETE<br />

DELETE<br />

Purpose<br />

<strong>Teradata</strong> T<strong>Pump</strong> supports the DELETE <strong>Teradata</strong> SQL statement, which removes rows from a<br />

table.<br />

Syntax<br />

DELETE tname WHERE conditional<br />

;<br />

FROM<br />

HE05B032<br />

where<br />

Syntax Element<br />

tname<br />

WHERE<br />

condition<br />

Description<br />

Table from which rows are to be deleted<br />

tname is qualified either explicitly by database name, or by the current default<br />

database.<br />

Conditional clause identifying the row(s) to delete<br />

The conditional clause uses values from input data record fields as defined by a<br />

FIELD command or TABLE command of the layout referenced by an IMPORT<br />

using this statement.<br />

Usage Notes<br />

The following notes describe how to use DELETE statements following a DML command.<br />

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

are followed in that case.<br />

<strong>Teradata</strong> T<strong>Pump</strong> operates only on single table statements so DELETE statements must not<br />

contain any joins.<br />

To delete records from a table, the username specified on the LOGON command must have<br />

DELETE privilege on the specified table.<br />

When the condition(s) of the DELETE statement WHERE clause are evaluated, the result can<br />

be definitely true, definitely false, or indeterminate. If the result is true for a specific row,<br />

<strong>Teradata</strong> T<strong>Pump</strong> deletes the row. An indeterminate result, due to an abnormal arithmetic<br />

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

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

Saved successfully!

Ooh no, something went wrong!