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

How do I run a sql query?

528


What are sql triggers used for?

503


What is loop in pl sql?

565


What is normalization sql?

507


What is exit statement?

537






Is grant a ddl statement?

449


explain commit and rollback in mysql : sql dba

538


What are pl sql data types?

545


Is sql sequential or random?

531


How to check if a column is nullable before setting to nullable?

580


how mysql optimizes distinct? : Sql dba

545


what is the syntax for using sql_variant_property? : Transact sql

527


Does truncate remove indexes?

554


How do you explain an index number?

529


What is foreign key sql?

547