Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: sql insert
Try :
Insert into devt_table select * from prod_table@<link>;
or you can use the COPY command.
CY Chiam <cychiam_at_hq.psa.com.sg> a écrit dans le message :
3709da85.14204344_at_butler.psa...
> I am trying to copy some records from the Production server to
> Development server through the use of db link, say <link>.
>
> The stored procedure I have in mind is as follows:
>
> -----------start-------
> create procedure procGetLiveData
> cursor dataCursor is
> select * from prod_table@<link> where <key> = <value>;
>
> begin
> for c in dataCursor
> loop
> insert into devt_table
>
> end loop;
> end procGetLiveData;
> ----------end--------
>
> prod_table and devt_table have the same schema. The schema is very
> long. Is there a simplified way to insert into devt_table without
> stating the fields of the table?
>
> Thanks.
Received on Tue Apr 06 1999 - 06:03:32 CDT
![]() |
![]() |