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
What do you understand by concurrent programs?
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
is it possible to run the interface without using oracle apps?
What is instead of trigger in where we will use?
what are the balancing segments in AR?
What is oracle soa suite and what are its different components?
Explain oracle apps architecture.
can we get profile values in report without using user exists is it possible how?
If we have a repeated record in a table. But the repeated record how i can transfer from table to nested table?
what is the differences between internal requisition and internal sales order?
what is pay run id ?
q)what are the validations in sql*loader
What are the different components you should consider while defining a responsibility in oracle apps?
What are do's and dont's of Interface?
Explain what are the tables of auto invoice?