How to pass data into EXECUTE_IMMEDIATE statement in plsql
body ?
Answer Posted / eldho
Hope this pice of code explains:
declare
v_query VARCHAR2 (200);
v_employee_name VARCHAR2 (50);
BEGIN
v_query := 'SELECT emp_name from employees where emp_id =
102';
EXECUTE IMMEDIATE v_query
INTO v_employee_name;
DBMS_OUTPUT.put_line ('Emp Name is ' || v_employee_name);
END;
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Tell me where we find the status of order information?
What do you understand by concurrent programs?
How can we import the data into a database using sql * loader?
tell me the scenarios of the independent in reports
Do you know what are user profiles in apps. Any examples you can give?
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
List the various types of value set.
What does appl_top directory contain?
how do you describe O2C along with tables
what are the balancing segments in AR?
Can we create tables in apps schema?
WHAT IS CUSTOM VIEW AND CUSTOM COMPONENT?
where to define interorganization transaction charges and what are the different options?
do you know is it possible to run the interface without using oracle apps?
Suppose for report I have to parameters those are from_date and to_date, so to_date should be greater when compare to from_date, if we are giving to_date is lessthen it must shows some error how we will make?