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 »

Anonymous Class in Java

Anonymous class in Java is a class without name. Its name is decided by the compiler. It enables us to declare and instantiate the class at the same time. It is like local class except that it does not have any name. We can use it only once. Anonymous class is also known as anonymous …

Anonymous Class in Java 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 »