You can put your INSERT query in the Begin...End block for multiple row
insert at the same time
Begin
INSERT INTO table name
VALUES ('value this', 'value that');
INSERT INTO table name
VALUES ('value this-1', 'value that-1');
INSERT INTO table name
VALUES ('value this-2', 'value that-2');
End;
/
Regards,
Siva.P
BirlaSoft, Bangalore. India
Mail to: siva.[Email address protected]
DC# : *318 - 5138
"You never achieve real success unless you like what you are doing"
-----Original Message-----
From: Dave
[mailto:oracledba-ezmlmshield-x64263233.[Email address protected]
Sent: Tuesday, October 09, 2007 5:17 AM
To: LazyDBA Discussion
Subject: Creating multiple rows at once
This one will be easy for you guys.
How do I insert a bunch of data all at once?
Instead of this:
INSERT INTO table name
VALUES ('value this', 'value that');
[and then do it again for the next row]
INSERT INTO table name
VALUES ('value this', 'value that');
How do I just keep going before executing?
Like this:
INSERT INTO table name
VALUES ('value this', 'value that') ('value this', 'value that')
('value this', 'value that') ('value this', 'value that')
('value this', 'value that');
---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
Oracle LazyDBA home page