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
Which is faster truncate or drop?
What is acid property in a database?
how to install mysql? : Sql dba
Which is faster view or stored procedure?
Can we call procedure in select statement?
What does t sql mean?
What is query syntax?
What is $$ in sql?
What are the types of dbms?
how to use like conditions? : Sql dba
What is the process of debugging?
What packages are available to pl/sql developers?
Do stored procedures prevent sql injection?
How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?
Does sqlite need a server?