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

Enlist the data types that can be used in pl/sql?

783


how to shutdown mysql server? : Sql dba

799


What view means?

764


How many types of indexes are there in sql?

755


What is difference between pl and sql?

750


What is date functions?

761


What is use of package in pl sql?

751


What is the best partition size for windows 10?

747


What is the use of function "module procedure" in pl/sql?

926


what is the difference between undefined value and null value? : Sql dba

814


How much does a sql dba make? : SQL DBA

710


Why is partition used in sql?

823


How to run pl sql program in mysql?

721


What are packages in pl sql and also explain its advantages?

735


What is error ora-01000: maximum open cursors exceeded

823