Home
Technical Training
Oracle 9i Training
This tutorial is part of a Oracle 9i Training tutorial series. Read it from the beginning and learn yourself.
Technical Training
Oracle 9i TrainingBuilding PL/SQL Blocks in Oracle 9i Page - 2
Page 2 of 2
Author : Exforsys Inc. Published on: 16th Feb 2005 | Last Updated on: 3rd Jan 2011
Building PL/SQL Blocks in Oracle 9i
Ads
SQL > /
Welcome To PL/SQL Programming
PL/SQL procedure successfully completed.
Scope and Visibility of Variables : An identifier in PL/SQL block is considered as local to that block and global to all its Sub-blocks. Which is better understood from the following example.
There are 2 composite datatypes. TABLE and
RECORD. Objects of type RECORD are called records. Objects of type TABLE are called PL/SQL table.
User-Defined Records: The %rowtype attribute can be used to store a record fetched from the table. But it is not possible to declare datatype for the fields in %rowtype. This problem is solved in the object type RECORD. The usage of %rowtype and RECORD object are explained below.
PL/SQL Tables:
Ads
PL/SQL tables are modeled as database tables but are not same as database tables.The size of a PL/SQL table is unconstrained i.e. it can grow dynamically whenever a newrecord is added. Its size is constrained only by the available memory. Every PL/SQL tablewill have a primary key column of BINARY_INTEGER type.
Read Next: Oracle 9i PL/SQL Control Structures
Oracle 9i Training
- Oracle 9i Utilities
- Oracle 9i Packages
- Oracle 9i Database Triggers
- Oracle 9i Procedures and Functions
- Oracle 9i PL/SQL Collections
- Oracle 9i Exception Handling
- Download example SQL Scripts used in Oracle 9i Tutorials
- Oracle 9i Cursors
- Oracle 9i PL/SQL Control Structures
- Building PL/SQL Blocks in Oracle 9i
- Oracle 9i Tables and Constraints
- More Oracle 9i Database Objects
- Introduction to Oracle 9i SQL, PLSQL, and SQL *Plus
- Oracle 9i Software Installation, SQL, PLSQL and SQL *Plus References


RECORD. Objects of type RECORD are called records. Objects of type TABLE are called PL/SQL table. 








