MERGE [message #190596] |
Thu, 31 August 2006 06:21 |
sam4all
Messages: 29 Registered: August 2006 Location: Bangalore
|
Junior Member |
|
|
Hi
Is there any command in oracle 8/8i which do same function of MERGE in oracle 9i?
regards,
Sam chacko
|
|
|
Re: MERGE [message #190601 is a reply to message #190596] |
Thu, 31 August 2006 06:36 |
rleishman
Messages: 3728 Registered: October 2005 Location: Melbourne, Australia
|
Senior Member |
|
|
Nope. Use INSERT and UPDATE.
If you have a long-running complex SQL to determine a result-set that you do not want to run twice (once each for the INSERT and UPDATE), then insert the results temporarily into a GLOBAL TEMPORARY TABLE, and then run the INSERT and UPDATE statements off the GTT.
Ross Leishman
|
|
|
|