PL/SQL (MOSC)

MOSC Banner

Insert multiple rows of the select query

edited Nov 2, 2011 8:58PM in PL/SQL (MOSC) 13 commentsAnswered
Hello all,
I have a procedure, and want to insert the rows return to 2 table, however, i only get the first row inserted,

item_no, Price
1              100
1              200



the item_no insert into table 1
price insert into table 2

my current insert is 


insert into
table1
(item_no)
values(1);
insert into table2
(price)


what am i missing to insert all the rows return to table for price?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center