Latest Tutorials

Variables in stored procedures

Variable is a data object. Its value can be changed during the execution of the stored procedure. The results of the procedure execution are stored in variables. To declare variable inside procedur...

Parameters in stored procedures

Parameter is the variable which is passed to

Return values in stored procedures

Stored procedure does not return a value using RETURN statement. But CALL statement gets the values of stored procedures

The IF statement in stored procedures

The IF statements in MYSQL executes a block of code depending on the condition inside the IF statement, whether is true or false. The condition inside IF statement can be formed by...

The CASE statement in stored procedures

The CASE statements are used to implement a complex conditional construct. The CASE statements are declared in two ways: CASE caseValue  &nb...

What is MySQL cursor?

MySQL Cursors exist and are set to traverse in datasets, returned by...

MYSQL Stored Functions

A stored function in MySQL encapsulates user defined formulas that can be reused amon...

What are MySQL triggers and how to use them?

The MYSQL triggers refer to a program which automatically gets executed when an event associated with the database occurs. The events of a database which may cause triggers to exec...

How to implement a MYSQL trigger?

As discussed earlier, MYSQL trigger can be implemented before or after the INSERT, UPDATE and DELETE events...

Creating MySQL triggers (TRIGGER)

To create a trigger in MySQL, a keyword TRIGGER is used. Basic syntax to create trigger: Syntax CREATE