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

DML<br />

After all of the rules have been validated, the row with ItemNbr = 10 and SaleDate = '05/30/<br />

2005' gets updated. A successful update of one row is returned.<br />

Example 4 (Valid Upsert INSERT)<br />

This example demonstrates a successful upsert statement where a row gets inserted.<br />

.Dml label upsertdml do insert for missing update rows;<br />

UPDATE Sales SET ItemCount = ItemCount + 1 WHERE (ItemNbr = 20 AND<br />

SaleDate = '05/30/2005')<br />

INSERT INTO Sales (20, '05/30/2005', 1);<br />

After all of the rules have been validated and no row was found with Item = 20 and SaleDate =<br />

'05/30/2005' for the UPDATE, a new row is inserted with ItemNbr = 20. A successful insert of<br />

one row is returned.<br />

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

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

Saved successfully!

Ooh no, something went wrong!