Answer Posted / kiran kumar
---- is a named pl/sql block to perform a specific task.
---- A procedure may have DML statements.
---- It may or may not return a value.
---- Procedure can return more than one value.
Example for procedure
1)To accept the year as a parameter and list emp belong to
the year?
Create or replace
Procedure empy(y number) is
Cursor emp_cursor is
Select * from emp where to_char(hiredate,?yyyy?)=?y?;
Emp_record emp%rowtype;
Begin
For emp_record in emp_cursor loop
Print (emp_record.empno);
Print (emp_record.ename);
Print (emp_record.sal);
End loop;
End;
Output :
var empx number;
Begin
:empx := ?1234?;
End;
Exec empy(:empx);
Print empy;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
In support project one ticket alloted which steps follows manualy tell me ?
how can i print random rows in plsql table
What are do's and dont's of Interface?
Explain what are the tables of auto invoice?
do you know is it possible to run the interface without using oracle apps?
Plz anybody send me Technical specification for AP Interface
What do you understand by a set of books?
Can you differentiate between mediator and osb?
tell me the scenarios of the independent in reports
How to create a purchase order without a requisition?
what is the difference between request group and request security in oracle apps?
pls send me out bound code of supplers,site,bankiformation code pls as soon as
Are you familiar with internet architecture of oracle apps 11i?
Can we create tables in apps schema?
What is sca and how is it useful?