AshwaDip Tutorials

  1. Oracle
  2. Fundamentals of DB
  3. SQL
  4. SQL LANGUAGES
  5. CONSTRAINTS
  6. OPERATORS
  7. JOINS
  8. SUB - QUERIES
  9. DB OBJECTS
  10. PARTITIONS
  11. FUNCTIONS
  12. PL/SQL
  13. PLSQL Interview

11. PL/SQL

• Introduction to PL/SQL
• What is a Program block?
• Advantages of PL/SQL.
• Architecture of PL/SQL Engine
• Features, Structure of Program Block
• Data types, Executable Stmts.
• What are the blocks in the program structure?
• DECLARE Block
• BEGIN Block
• EXCEPTION Block
• END

11.1. TYPES OF PROGRAMS

• Static Programs
• Dynamic Programs
• Worked Examples and Assignments

11.2. Type Compatibility keywords

• Declaring variables Dynamically --%TYPE
• Declaring Table Type Record Variables--%ROWTYPE

11.3. SUB PROGRAMS

Stored Procedures
• What is a procedure?
• How to create it?
• What are the advantages of procedures?
• Types of stored procedures
• Static Procedures (without Arguments)
• Dynamic Procedures (with Arguments)
• Arguments or Parameters Mode
• IN OUT INOUT

CONTOL STRUCTURES
CONDITIONAL STATEMENTS
• Simple IF
• IF—THEN—ELSE
• COMPOUND IF
• ELSIF Construct
• Worked Examples and Assignments

LOOPS
• Simple Loop
• While Loop
• For Loop

CURSORS
1. Implicit Cursor (Predefined)
2. Explicit Cursors (User Defined) (a.Simple, b.Parameterized, c.Ref (Strong, Weak))
3. Package Cursor
• Cursor Variables
• FOR loop cursor

What is BULK COLLECT?
What is FORALL?
What is BULKBIND?

EXCEPTION HANDLING AND THEIR TYPES
• Predefined Exceptions
• User defined Exceptions
• Pragma_ Exception_init
• RISE_APPLICATION_ERROR

PL/SQL RECORDS AND TABLES
• Composite Data Types
• PL/SQL Records & Tables
• Nested Records
• Using Record in a Table
• And Examples

FUNCTIONS
• What is a Function?
• When we have to create a function?
• How to call it?
• With and without arguments

PL/SQL Collections
• VARRAYS
• Associative Arrays
• Nested tables/ PLSQL TABLES

TRIGGERS
• What is a Trigger Program?
• When we need a Trigger?
• Parts of a Trigger
• Types of Triggers
• Database Triggers
• Row Level Triggers with Ex.
• Statement Level Triggers
• Instead-of Triggers - Views with Ex.

PACKAGES
• What is a PACKAGE?
• Structure of package
• Package Spec and Body
• Accessing procedures and functions from a package