adspace


What is the difference between a procedure and a function?

Answer Posted / Ajay Kumar Agrahari

A stored procedure is a set of SQL statements that performs a task, while a stored function returns a single value. Stored procedures can have input parameters, but they don't return a value. On the other hand, stored functions can accept input parameters and return a single scalar value as output.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is collation? : Sql dba

1242


Is primary key always clustered index?

1101


what is bcp? When does it used? : Sql dba

1065


what are all the common sql function? : Sql dba

1141


what is dbms? : Sql dba

1070


what is schema? : Sql dba

1163


what are the advantages of sql ? : Sql dba

1154


What is your daily office routine?

2353


how to start mysql server? : Sql dba

1279


how many tables will create when we create table, what are they? : Sql dba

1156


Can we use distinct and group by together?

1147


Do we need to rebuild index after truncate?

1154


what are aggregate and scalar functions? : Sql dba

1142


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


Does group by remove duplicates?

1121