PL/SQL Triggers

Create Trigger The Oracle PL/SQL triggers are procedures that are associated with tables, and are called whenever an event occurs. The event statements may include INSERT, UPDATE or DELETE. When an event occurs on a table, a trigger is fired and an action is performed. Oracle PL/SQL triggers are commonly used to enforce business rules,…(Continue Reading)

PL/SQL Sequential Control

In PL/SQL (Procedural Language/Structured Query Language), sequential control refers to the order in which statements are executed in a block of code. Sequential control in PL/SQL is managed by the flow control statements, which determine the order in which the program’s statements are executed. These statements include: Sequential Execution: PL/SQL code is executed sequentially, line…(Continue Reading)

PL/SQL Iterative Control

Oracle PL/SQL supports various types of LOOP statements, which allow you to execute a sequence of statements multiple times. The different types of loop statements are: LOOP, WHILE-LOOP, FOR-LOOP. Oracle PL/SQL LOOP statements are often used to process data in bulk or to iterate through the elements of a collection or an array. LOOP LOOP…(Continue Reading)

PL/SQL Control Structures

In Oracle PL/SQL, control structures are used to manage the flow of execution in a program. These structures allow developers to dictate the order in which statements are executed based on certain conditions or loops. The primary control structures in PL/SQL include conditional statements IF statement, IF-THEN-ELSE, loops (FOR, WHILE, and LOOP), and branching statements…(Continue Reading)

PL/SQL Procedure

A procedure is a named PL/SQL block which is stored in the database and can be invoked by name. An Oracle PL/SQL procedure has a header and a body. The header consists of the keyword PROCEDURE, followed by the procedure name, followed by a list of parameters in parentheses. The body of the procedure consists…(Continue Reading)