what is difference between procedure and function

Answer Posted / subhendu

Functions called from SQL have special restrictions:

Accept only IN parameters
cannot contain DML
cannot contain DDL - implies COMMIT
Accept and return only SQL datatypes (not PL/SQL
specific datatypes)
Must use positional notation
Must own or have EXECUTE privilege
Cannot contain transactional or session control
statements (eg. COMMIT, ROLLBACK, ALTER)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the importance of sqlcode and sqlerrm?

1058


What is t sql used for?

733


Which command is used to call a stored procedure?

713


What is the difference between mdf and ndf files?

780


Is sqlite free?

718






What is autocommit sql?

708


How can you fetch first 5 characters of the string?

711


what is a field in a database ? : Sql dba

757


Can dml statements be used in pl/sql?

775


how to check server status with 'mysqladmin'? : Sql dba

784


Is it possible to create the following trigger: before or after update trigger for each row?

926


What are analytic functions in sql?

743


What is pivot query?

830


Explian rowid, rownum?

754


what is cursor. write example of it. What are the attributes of cursor.

976