what is difference between procedure and function
Answer Posted / nannesaheb chinthalacheruvu
Procedure :
->Procedure is a Named PL/SQL Block which can be stored in
Database in compile form.
->Procedure is used to execute the Perticular task.
->Procedure Does not required RETURN clause.
->Procedure Does not Return value
->It is not posible to execute using SQL statements.
->Procedures can be execute using a)Execute/Call,b)Anonymous
Block
Function :
->Function is a Named PL/SQL Block Which can be Stored in
Database in Compile Form.
->Function is used for Calculation Perpose.
->Fuction Does Contains RETURN Type
->Fuction Can Return only One Value.
->Fuction can Execute using SQL Statements when We can not
Perform any DML Operations in Function.
->Using Out Mode Parameters we can Return Multiple Records
in Function.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
List and explain the different types of join clauses supported in ansi-standard sql?
What is parameter substitution in sql?
Explain select statements in sql?
What is server name sql?
How do you optimize a query?
Can we insert data in view?
What is sqlerrd?
What does a pl/sql package consist of?
How would you convert date into julian date format?
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
what are the system privileges that are required by a schema owner (user) to create a trigger on a table?
What are the different ddl commands in sql?
Can we write ddl statements in functions?
Where is pl sql used?
Why is the cursor important?