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
What is foreign key sql?
Difference between truncate, delete and drop commands?
How do you create a db file?
Are stored procedures compiled?
Is postgresql a server?
What is sql and also describe types of sql statements?
What is pl sql in dbms?
Is inner join same as self join?
How can you select unique records from a table?
Why do we use cursors?
What is a unique key and primary key and foreign key?
Explain select statements in sql?
What is the least restrictive isolation level? : Transact sql
what are the differences among rownum, rank and dense_rank? : Sql dba
What are dml commands?