adspace


Why do we create stored procedures & functions in pl/sql and how are they different?

Answer Posted / Mohan Singh

"We create stored procedures and functions in PL/SQL to reuse code, encapsulate logic, and improve performance. A stored procedure is a collection of SQL statements that performs a specific task when executed. It can accept input parameters, return output values, and perform side effects on the database. On the other hand, a function returns a value after executing a set of SQL statements, without performing any side effects on the database."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I remove duplicates in two columns?

1187


what are the advantages of sql ? : 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

2091


define sql insert statement ? : Sql dba

1098


what is schema? : Sql dba

1147


What is your daily office routine?

2346


Can delete statement be rollbacked?

1054


Is primary key clustered index?

1019


what is dbms? : Sql dba

1061


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

1144


what are all the common sql function? : Sql dba

1131


how to use regular expression in pattern match conditions? : Sql dba

1113


If a cursor is open, how can we find in a pl/sql block?

1238


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

1056


Do we need to rebuild index after truncate?

1138