What is procedure?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nidhi
Procedure consist of set of the PL/SQL statments that are
grouped togather as a unit to solve a specific problem or
perform set of related tasks.
-->May or may not return the value.
-->can not use in teh sql queries because returns more than
one value.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chandrasekhar
procedure is subprogram in pl/sql that contains a set of
SQL and PL/SQL statements.Subprograms once we executed can
be used in any no.of applications
| Is This Answer Correct ? | 0 Yes | 0 No |
what is back order in OM
can we write sql statement in Format trigger?
what is meant by Table space?
How do u identity its name of report?
testing tools?
0 Answers BirlaSoft, Convergys,
what is the difference between multiorg views and multiorg tables
2 Answers Immense Source, Intelligroup, TCS,
explain o2c cycle? what are the table reflected for this process?
How many standard interface programs in oracle purchasing module and oracle inventory? What are they?
What is template?
While importing data into interface tables,if u got number of records are error(like more than 1000 records are error),how to imform user?
Write an SQL Query to Delete Duplicate records from a table using ROWID.
24 Answers pspl, Satyam, Thinkways,
How to write the no data found in XML Publiser Report in apps?