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
What is instead of trigger in where we will use?
please send me forms, xml pulisher questions,answers
Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?
What do you understand by soa?
what is the difference between request group and request security in oracle apps?
Tell me how to find the custom directory in front end?
What are file in oracle.
Tell me how to debug the report?
what are the different transaction clauses in AR?
What is a flexfield? List out its types.
How many schemas we have? how many you have used?
pls send me out bound code of supplers,site,bankiformation code pls as soon as
A program must be written which accepts date parameter. The date parameter will accept data in the format DD/MM/YYYY. This data has to be validated and post validation, the following details have to be displayed for this date parameter 1. Input date must be defaulted to sysdate, It can be overridden by any other date. 2. Financial year should be displayed for this date parameter. Eg: If the input date is 30/11/2010, the financial year must be displayed as 1. From Date : 01-Aprr-2010 To Date: 31-Mar-2011 3. Calendar year and Calendar month must also be displayed. 4. The next payment cycle (say for EB), must be displayed based on this date parameter. 5. The previous payment must also be displayed based on this date.
How do you register report in oracle apps?
how to print multi lay outs,muti currency,muti language in xml publisher