PL/SQL

PL/SQL Triggers

PL/SQL triggers are block structures or pre-defined programs, which may be in-built or even explicitly developed by the programmers for a particular task. Triggers are automatically executed when an event occurs which is well thought of by the programmer in advance. Triggers are associated with response-based events such as a Database Definition Language (DDL) statement …

PL/SQL Triggers Read More »

PL/SQL Cursors

Whenever you try to execute an SQL statement, Oracle processes it in a separate memory zone called as ‘Context Area’. It contains information regarding information retrieved from database tables/records, SQL query, number of rows accessed by it and many more. This Context Area is controlled by a ‘Cursor’. A PL/SQL cursor can hold one or …

PL/SQL Cursors Read More »

PL/SQL Functions

There are two types of PL/SQL blocks: 1. Named Blocks 2. Anonymous Blocks PL/SQL Functions Function is one of the two available Named Blocks in Pl/SQL, the other being Procedure. In PL/SQL, a function takes one or more parameter and returns one value.  The main difference between a PL/SQL function and a PL/SQL procedure is …

PL/SQL Functions Read More »

PL/SQL Procedure

A subprogram is a module or a small unit/part of a program that performs a particular task. In modular programming, a program can optionally consist of multiple subprograms. Note: A schema level subprogram is a standalone subprogram. PL/SQL Procedure A procedure is a group of PL/SQL statements that you can call by its name. These …

PL/SQL Procedure Read More »

PL/SQL Loops

There may arise a situation when you need to execute a particular block of code several number of times. Programming languages provide various control structures that allow for more complicated execution paths and Loops are one of them. In other words, you may sometimes need to run a particular block of code in the program …

PL/SQL Loops Read More »

PL/SQL Conditional Statements

Decision-Making is an important part for most of the computer programs. It helps to develop the program code logically. For correct decision making, PL/SQL provides us with the Conditional Statements. These Conditional Statements helps us to develop a proper algorithm and a logical program. Decision-making programs or structures require that the developer mentions conditions to …

PL/SQL Conditional Statements Read More »