Total WebSite Views Count

Store Procedure and Function

Store Procedure and Function


FunctionProcedure
The function is compiled every timeit is called for execution.Procedures are pre-compiled and saved. They execute the pre-compiled code whenever called.
Can be called from SQL statements.Can not be called from SQL statements.
The function has to return a value.Need not return any value.
Generally used for computation purpose.Used for executing complex business logic.
Can return multiple values using other methods, otherwise, return only a single value.Can return multiple values
Returns scalar data types.Returns an int by default.
A stored procedure can not be called from a functionThe procedure can call any function
Functions can be embedded in a select statementInside a select statement, a procedure cannot be called.
Exception handling is not possibleTry/catch block can be defined inside a procedure

Store Procedure and Trigger

Answer:
PROCEDURETRIGGER
Called explicitly by a user, trigger or an applicationExecuted by the DBMS whenever an event occurs in the database.
Can have parametersDoesn’t have parameters
Cannot be inactiveCan be enabled or disabled on need basis
Creation – CREATE PROCEDURECreation – CREATE TRIGGER

AWS Services

AWS Services

Technology Selection & Evaluation Criteria

Technology Selection & Evaluation Criteria

Scale Cube - Scale In X Y Z Cube

Scale Cube - Scale In X Y Z Cube

Feature Post

AWS Services

About Me

About Me

Spring Cloud

Spring Cloud
Spring Cloud

Spring Cloud +mCloud Native + Big Data Archittect

Spring Cloud +mCloud Native + Big Data Archittect

ACID Transaction

ACID Transaction

Data Pipe Line Stack

Data Pipe Line Stack

Popular Posts