Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
TYPES:
– Private
– Public
Sequence
Used to generate numbers
automatically
Not related to any table
Uses two pseudo columns
– Nextval : Holds the next value to be
generated
– Currval: Hold the previous value
INDEX
It is activated when indexed column is used in
“where” clause
Used to improve performance while retrieving
or manipulating records
Holds the physical address of data
It is like a C pointer which locates the data
TYPES :
– Composite Index
– Unique Index
CLUSTERS
Used to improve performance
while manipulating related tables
It holds the common column
available in two tables
Not allowed on existing tables
LOCKS
Used preserve data while
manipulating
TYPES :
– Implicit
– Explicit
• Row Level
• Table Level
– Share Mode
– Share Update Mode
– Exclusive Mode
PL / SQL
Supports variables and constants
PACKAGES :
It is a collection of related variables, cursors, procedures
and functions
Advantages :
– Improves performance while accessing subprograms from
client
– Stored permanently
Parts :
– Package specifications : Holds component
declarations available in package
– Package Body : Holds the body of procedures and
functions