Insert multiple rows [message #183709] |
Sat, 22 July 2006 09:00 |
parmaleuday
Messages: 9 Registered: July 2006 Location: pune
|
Junior Member |
|
|
hi everybody
plz tell me how to insert multiple rows into table with a easier way,in the oracle book it is in very difficult way.
|
|
|
|
|
|
|
parallel insert [message #183745 is a reply to message #183709] |
Sun, 23 July 2006 03:46 |
parmaleuday
Messages: 9 Registered: July 2006 Location: pune
|
Junior Member |
|
|
hi friends
i m looking for parallel insert.
i want to insert multiple rows in a single insert command.
how is it possible?
|
|
|
Re: parallel insert [message #183758 is a reply to message #183745] |
Sun, 23 July 2006 06:19 |
Frank Naude
Messages: 4581 Registered: April 1998
|
Senior Member |
|
|
Something like this?
SQL> create table t1 (c1 number);
Table created.
SQL>
SQL> INSERT ALL
2 INTO t1 VALUES (1)
3 INTO t1 VALUES (2)
4 INTO t1 VALUES (3)
5 SELECT * FROM DUAL;
3 rows created.
|
|
|
|
Re: how to insert multiple rows into table [message #183816 is a reply to message #183810] |
Mon, 24 July 2006 01:17 |
William Robertson
Messages: 1643 Registered: August 2003 Location: London, UK
|
Senior Member |
|
|
From 9i you can use Multitable inserts which are similar to the normal INSERT INTO...SELECT, but have more than one INTO clause.
"Parallel insert" is not the name of an Oracle feature in the documentation, although parallel DML is possible, so I'm not sure what you mean by that.
Perhaps rather than us prompting you with all the ways to insert a record until you see one you like, you tell us what you are trying to do and we help make it work.
btw substitution variables are a feature of SQL*Plus.
[Updated on: Mon, 24 July 2006 01:17] Report message to a moderator
|
|
|
|
|
Re: parallel insert [message #183925 is a reply to message #183920] |
Mon, 24 July 2006 07:23 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
Yes, you posted that already. Please stop posting the same questions in multiple threads.
By the way, please do not use IM speak ("2" instead of to)
|
|
|
|
|
|
|