REPLACE_ALL
Syntax
REPLACE_ALL {record | *} [AS new_table_name];
Description
This is a variation of the IMPORT command. If a table already exists, use this command to drop the table and its indexes from the database. It then:
-
creates the table.
-
creates any triggers.
-
inserts data.
-
creates indexes.
In the REPLACE_ALL statement, the AS clause is only valid if you specify a particular record. It is not valid and should not be used with REPLACE_ALL *.
The table name that you specify after the AS command modifier should not have more than 18 characters (including the ps_ prefix). Specifying a table name that is greater than 18 characters invokes the following error message: Error: Unable to process create statement.
Note:
Records defined using REPLACE_ALL can have a maximum of 500 total columns and multiple long columns within the limitations for long columns set by the database platform. Check with the database vendor for restrictions on the number of long columns allowed for the platform.
Parameters
All except IGNORE_DUPS and OUTPUT. INPUT is a required parameter.