Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Copy records in database!
Daniel Morgan wrote:
> Hans wrote: >
> You have only one choice other than to name the columns and that choice > is to put a BEFORE-INSERT trigger on the table that creates the primary > key's on-the-fly for all records no matter how they go in. >
Since you want the solution to be portable to non-Oracle databases and driven from the client side, I think you've already found your own "clever" solution, which is the temp table approach. Assuming you have the extra storage and can catch and handle any unexpected errors in the "transaction", this solution is simple and generic (in fact, it's so portable I use the same approach successfully in a legacy R:Base database).
--Mark Bole Received on Tue Aug 17 2004 - 09:51:23 CDT