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
How many schemas we have? how many you have used?
What is a flexfield? List out its types.
Can you explain the difference between architecture followed in 10g & 11g?
CAN YOU CUSTOMISE THE COUTOMISE CUS_TOP
what are the balancing segments in AR?
Can you define an erp system?
tell my any difficult situtation you solved in your experience in your company?
is it possible to run the interface without using oracle apps?
Hi any one plz help me .i need 2 or 3 customized and 2 or 3 development reports on PO module..if any body having plz send me with one by one step ,i mean where u do the customization and wht are the steps u follwed when u do the customization,wht are fields u added or deleted ,How u added or these fields as per clinet requirement and wht are errors u faced .plz send it to my mail id iamvenki@gmail.com
Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?
What does appl_top directory contain?
What is a value set? List its various types.
If we have a repeated record in a table. But the repeated record how i can transfer from table to nested table?
where to define interorganization transaction charges and what are the different options?
how can develope the po variance and po summary report? with tables mandatory columns and query please?