Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> sql insert

sql insert

From: CY Chiam <cychiam_at_hq.psa.com.sg>
Date: Tue, 06 Apr 1999 09:57:33 GMT
Message-ID: <3709da85.14204344@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 - 04:57:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US