Question: Q 4 . ( 1 5 points ) Dynamic SQL . This question uses table EMP. Below are the codes of a package specification (
Q points Dynamic SQL This question uses table EMP.
Below are the codes of a package specification finished and part of the package body unfinishedYou are required to finish the procedure codes that accepts the emp number empno as IN parameter, retrieves the ename and sal to populate the record variable as the out parameter.
After having compiled the package and the package body, write a PLSQL block program. In the block, the program will declare a variable of the EmpRec data type defined in the package. The program will run "EXECUTE IMMEDIATE" for the dynamic string:
'BEGIN EmppkgGetEmpRec
:dummyplaceholder ; END;;
You need to use the corresponding bind argument for the placeholder in the USING clause.
Then your program will display the result.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
