How to pass data into EXECUTE_IMMEDIATE statement in plsql
body ?

Answer Posted / m.n

declare
v_query VARCHAR2 (200);
v_inv_item_id VARCHAR2 (50);
BEGIN
v_query := 'SELECT inventory_item_id from
mtl_onhand_quantities_detail where inventory_item_id =107';
EXECUTE IMMEDIATE v_query
INTO v_inv_item_id;
DBMS_OUTPUT.put_line ('inventory_item_id ' ||
v_inv_item_id);
exception
when others then
DBMS_OUTPUT.put_line ('inventory_item_id ' ||
v_inv_item_id);
END;

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the balancing segments in AR?

1653


what is pay run id ?

1712


Are you familiar with internet architecture of oracle apps 11i?

632


Hi  Friends this is preetham, i am  searching for job on oracle apps(technical) i put 3 years fake exp, so any one  please could you help me for realtime interview  questions and 9739782164 this is my no srpsrp777@gmail.Com please guys please provide your no for contact i have a doubts i want to clarify

1573


What do you understand by concurrent programs?

621






how to print multi lay outs,muti currency,muti language in xml publisher

10752


What is sca and how is it useful?

663


How many schemas we have? how many you have used?

1618


Do you know what is applysys in oracle application database schema, what is apps?

677


What is instead of trigger in where we will use?

680


What are the different components of soa suite?

726


pls send me out bound code of supplers,site,bankiformation code pls as soon as

1762


What is a value set? List its various types.

652


Tell me how to debug the report?

642


what are the different transaction clauses in AR?

1604