Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> How do I do this in PL/SQL?
Hello:
I have the following DML stmt. Is it possible to write the same DML in PL/SQL without using Dynamic SQL?
I read somewhere in the oracle forum that it is not possible to have the "TABLE" clause within PL/SQL.
Following is my DML:
Insert into Redemption
( Cas_ID, Login_ID, Quantity, Prod_ID, Line_Desc, Shipping_address,
opt1name, opt1val, opt2name, opt2val, opt3name, opt3val, opt4name,
opt4val )
Select :myCasID, :myLoginID, :myQnty, :myProdID, 'myLineDesc', null, p.opt1attr_name, o1.attr_val, p.opt2attr_name, o2.attr_val, p.opt3attr_name, o3.attr_val, p.opt4attr_name, o4.attr_valfrom
and o1.attr_id(+) = nvl(:myArrt1id, 0) and o2.attr_id(+) = nvl(:myArrt2id, 0) and o3.attr_id(+) = nvl(:myArrt3id, 0) and o4.attr_id(+) = nvl(:myArrt4id, 0) ;
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Mon Aug 28 2000 - 21:33:48 CDT