Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Copying Tables.
On Mon, 08 Mar 1999 13:25:14 -0500, Stan <delphi_at_yahoo.com> wrote:
>I am trying to make a very large table for testing purposes. I have a
>table with 30,000 records. Is there a way that I can copy these records
>to a temporary table, and then append them back to get 60,000 records?
>(Don't worry, I don't have a primary key open).
Just simply select all the columns from this table and insert them back into the same table using INSERT INTO..SELECT. As in:
SQL> select count(*) from emp;
COUNT(*)
14
SQL> insert into emp select * from emp;
14 rows created.
SQL> commit;
Commit complete.
SQL> select count(*) from emp;
COUNT(*)
28
>
>Stan.
>
Thanks!
Joel
Joel R. Kallman Oracle Service Industries
Columbus, OH jkallman@us.oracle.com http://www.oracle.com
![]() |
![]() |