In SQL, there are two types of data replication to the original table, in two ways, insert into and select INTO.
Detailed instructions:
INSERT into From:insert into new table name (column 1, column 2 ...) Select column 1, column 2......from source table name where constraint condition; (This command uses the prerequisite: the target table already exists)
SELECT INTO From:select column 1, column 2, ... into the new table name (column 1, column 2 ...). From the source table name (This command uses the prerequisite: the target table does not exist).
In DB2, insert into from can be used normally, but select into from cannot be performed because DB2 restricts select to from and inserts one row of data at a maximum at a time.
Therefore, to copy a table in DB2, you can use the
CREATE table ' new table name ' like ' source table name ';
insert into from;