|
|
| |
 |
|
Putting Methods to
Work in Oracle
Oracle Tips by Mike Ault |
Method Basics
Dependents is the attribute so it isn't
used in the type tree. Therefore, we start at the dependent_list
type as the outermost method and end at dependent_t, the
basic type constructor method. Since the type is for a nested table
in this example, we specify the dependent_t method multiple
times for each insert into the nested table. Notice that we also use
a constructor method, name_t, inside the innermost type
constructor to perform the insert into the dependents name attribute
which is itself a type. Population of a varray type is identical to
population of a nested table type with the exception that you can
only insert up to the maximum specified count of the varray.
SEE CODE DEPOT FOR FULL SCRIPTS
 |
If you like
Oracle tuning, you may enjoy the book
Oracle Tuning: The Definitive Reference
, with over 900 pages of BC's favorite tuning tips &
scripts.
You can buy it directly from the
publisher and save 30%, and get instant access to the code
depot of Oracle tuning scripts. |
 |
Expert Remote DBA
BC is America's oldest and largest Remote DBA Oracle support
provider. Get real Remote DBA experts, call
BC Remote DBA today. |
 |
|
|
|
|