Home » SQL & PL/SQL » SQL & PL/SQL » Intermittent commit while inserting
Intermittent commit while inserting [message #232699] |
Mon, 23 April 2007 01:19  |
abcindiaxyz
Messages: 13 Registered: March 2005 Location: Indonesia
|
Junior Member |
|
|
Dear All,
Hi.
My requirement is to commit the data intermittently while inserting.
Say for example there are 50,000 rows in a table "abc", and now i want to insert these 50,000 rows into another table "xyz", but the commit should happen every 5,000 records.
My requirement is urgent, so please help me in this regard as soon as possible.
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Intermittent commit while inserting [message #242507 is a reply to message #242498] |
Sun, 03 June 2007 01:05   |
 |
Michel Cadot
Messages: 68758 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote: | INSERT /*+ PARALLEL ( INS_TBL 2) APPEND */ INTO schema_name1.table_name1 INS_TBL (columns) VALUES (values);
|
This is the same thing as:
INSERT /*+ Oracle don't care about what you put there */ INTO schema_name1.table_name1 INS_TBL (columns) VALUES (values);
"SELECT * FROM tab;" with a FULL hint a non-sense. What can Oracle do if not a FULL SCAN?
If you don't know what are and when to use hints, DO NOT USE THEM.
I still don't understand why you're not using something like:
INSERT INTO ... SELECT ... FROM ...;
Regards
Michel
[Updated on: Sun, 03 June 2007 01:05] Report message to a moderator
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Jun 04 13:19:25 CDT 2025
|