diff b/w function and procedure?
Answers were Sorted based on User's Feedback
Answer / rupesh
function must return value whereas procedure may or maynot
return value
Call to Function can be encounter by using select
statement where as procedure can not be call in select
statement
| Is This Answer Correct ? | 15 Yes | 1 No |
Answer / muhammad sohail
function can be use in select clause and where clause
procedure can't
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / vipin kumar (m.c.a)
For calling both have the different method--
To call function
variablename:=functionname(arguments);
To call procedure
procedurename(argumentlist);
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / tilak
1)we can write COMMIT in procedure but we cant write in function
2) function must me return a value but procedure may or may
not be
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / vishal
procedure have two type of parameter intput and output type
but function have only one
| Is This Answer Correct ? | 9 Yes | 6 No |
Answer / sankaranarayanan.c
Procedure return more than one value, but fuction can
return only on value.
| Is This Answer Correct ? | 6 Yes | 5 No |
Answer / gourvendra singh
A procedure a subprogram used to perform a specific action
whereas a function is a subprogram which is used to compute
a value,in procedure we can use parameters(IN,OUT,IN OUT)
but in function we cant
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / sanjai yadav
function must have return type but a procedure may or may not have return type?
function:- int a= sum();
procdure:- sum();
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / malkeet kaur
1)functions may or may not have return type but procedure doesn't have return type
2)functions are called from select statement but procedure can not called from select statement
3)fuctions are used when some data is passed to calling environment but procedure is used
when some processing to be done
| Is This Answer Correct ? | 0 Yes | 0 No |
How can I get the number of records affected by a stored procedure?
how can I make a script that can be bi-language (supports english, german)? : Sql dba
if we give update table_name set column_name= default. what will happen? its given in pl sql block.what will hapen?
What is the use of desc in sql?
What port does sql server use?
Define SQL and state the differences between SQL and other conventional programming Languages?
mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql
what is sql.
Which software is used for pl sql programming?
How to pipe multiline string to isql?
What is the difference between delete and truncate commands?
How many sql core licenses do I need?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)