Bulk-copy and express transfers initiate a direct transfer of data between two databases from the client application.
You can use a bulk-copy or express transfer statement to copy large amounts of data between similar tables. The express transfer feature transfers data faster than bulk-copy transfer, and because it uses the same syntax as the bulk-copy transfer, you can use it without modifying your applications.
transfer [with report]
{to | from } 'secondaryname userid password';
with {insert | replace | truncate| alter table} into tablename;
sourceselectstatement
transfer must begin all transfer statements.
with report is an optional phrase specified in the first line of the transfer statement. It instructs the access service to return processing information to the client application.
This information is returned as a result set consisting of a VARCHAR column and a single row. The row contains the number of rows transferred, rejected, and modified during processing.
All of the elements of the character string must be enclosed in single or double quotes in the order shown.
with {insert | replace | truncate} into specifies whether the data is appended onto the target table (insert) or the existing data is deleted and replaced (replace or truncate).
{with alter table} into invokes a UDB command that disables logging for the transaction and truncates the table (for DB2 UDB only).
tablename specifies the table into which data is inserted or replaced. The table must already exist because the transfer statement does not create a new one in the target database.
sourceselectstatement specifies a SQL statement that is executed against the source database to produce the result set used in the transfer.
This statement can be any statement the source database accepts, including stored procedures. SQL transformation is not performed on the sourceselectstatement. It must be in the source database SQL dialect.