what is the differnce between procedure and function?
in both dml operations can work and in procedure through out
parameter you can return value ,then what is the differce?

Answer Posted / dinakar

Though Procedure returns a value through OUT parameter, it
cannot be used in SELECCT statement. Whereas a function can
be called in SELECT statement.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a sql trace file?

543


Why we use stored procedure instead of query?

528


Why should I use postgresql?

559


what are the different type of sql's statements ? : Sql dba

517


what is sp_pkeys? : Transact sql

697






How do I remove all records from a table?

561


What is the purpose of normalization?

531


what happens if you no create privilege in a database? : Sql dba

527


How do you sort in sql?

595


Is sql open source?

541


What is sql clause?

537


what is the difference between nested subquery and correlated subquery?

545


Can we commit inside a trigger?

543


What are schema-level triggers?

572


Is primary key is clustered index?

525