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 are the differences between char and varchar? : Sql dba

631


Does view store data in sql?

611


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

675


What is over () in sql?

605


How to assign sql query results to pl sql variables?

582






Can we insert data into view?

603


how can I make a script that can be bi-language (supports english, german)? : Sql dba

624


What is difference between mysql and postgresql?

604


What is rename in sql?

637


Is sql database free?

624


what are the properties and different types of sub-queries? : Sql dba

609


What is the use of prepared statement?

647


what is a relationship and what are they? : Sql dba

646


how can we destroy the cookie? : Sql dba

644


How can I see all tables in sql?

640