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

IMPORT<br />

.....<br />

;<br />

.IMPORT INFILE INFILE<br />

LAYOUT EQTTB535<br />

APPLY UPSERTAC WHERE (POOL_UPD_CODE = 'C'<br />

OR POOL_UPD_CODE = 'A')<br />

APPLY UPSERTDL WHERE POOL_UPD_CODE = 'D'<br />

;<br />

.END LOAD;<br />

/* For the upsert: */<br />

/* (first statement in .DML UPSERTAC) */<br />

/* make sure we have the 50 updates */<br />

.IF &IMP1_UPSERTAC_1 50 THEN<br />

.LOGOFF 100;<br />

/* ... and 50 inserts */<br />

/* (second statement in .DML UPSERTAC) */<br />

.IF &IMP1_UPSERTAC_2 50 THEN<br />

.LOGOFF 101;<br />

/* And for the plain update: */<br />

/* (first statement in .DML UPSERTDL) */<br />

/* we should have 10 of these. */<br />

.IF &IMP1_UPSERTDL_1 10 THEN<br />

.LOGOFF 102;<br />

.LOGOFF;<br />

156 <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!