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 1: Overview<br />

<strong>Teradata</strong> T<strong>Pump</strong> Commands<br />

Table 9: teradata SQL Statements in <strong>Teradata</strong> T<strong>Pump</strong> (continued)<br />

<strong>Teradata</strong> SQL Statement<br />

COMMENT<br />

CREATE DATABASE<br />

CREATE MACRO<br />

CREATE TABLE<br />

CREATE VIEW<br />

DATABASE<br />

DELETE<br />

DELETE DATABASE<br />

DROP DATABASE<br />

EXECUTE<br />

GIVE<br />

GRANT<br />

INSERT<br />

MODIFY DATABASE<br />

RENAME<br />

REPLACE MACRO<br />

REPLACE VIEW<br />

REVOKE<br />

SET QUERY_BAND<br />

Function<br />

Stores or retrieves a comment string associated with a database<br />

object<br />

Creates a new database, macro, table, or view<br />

Specifies a new default database for the current session<br />

Removes rows from a table<br />

Removes all tables, views, and macros from a database<br />

Removes an empty table from <strong>Teradata</strong> <strong>Data</strong>base<br />

Specifies a user-created (predefined) macro for execution. The<br />

macro named in this statement resides in <strong>Teradata</strong> <strong>Data</strong>base and<br />

specifies the type of DML statement (INSERT, UPDATE, DELETE,<br />

or UPSERT) being handled by the macro.<br />

Transfers ownership of a database to another user<br />

Grants privileges to a database object<br />

Inserts new rows to a table<br />

Changes the options of an existing database<br />

Changes the name of an existing table, view, or macro<br />

Redefines an existing macro or view<br />

Rescinds privileges to a database object<br />

Sets the query band for a session and transaction<br />

Note: The statement can be used in two ways:<br />

SET QUERY_BAND = 'Document=XY1234;<br />

Universe=East;' FOR SESSION;<br />

SET QUERY_BAND = NONE FOR SESSION;<br />

SET SESSION COLLATION<br />

SET SESSION OVERRIDE<br />

REPLICATION ON/OFF<br />

UPDATE Statement and Atomic<br />

Upsert<br />

Overrides the collation specification for the current session<br />

Turn on/off replication service<br />

Changes the column values of an existing row in a table<br />

Now that <strong>Teradata</strong> T<strong>Pump</strong> supports termporal semantics, it scans up to the keywords in the<br />

above list only in the sense that it submits them to <strong>Teradata</strong> <strong>Data</strong>base and deals with the<br />

success, failure, or error response.<br />

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

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

Saved successfully!

Ooh no, something went wrong!