3 – 13Building Your Database Objects
The next extent size, in kilobytes. Do not include
the ’K’.
The total number of digits in a number.
The number of digits to the right of the decimal
point in a number.
Example of Using the AD_DD Package
Here is an example of using the AD_DD package to register a flexfield
table and its columns:
EXECUTE ad_dd.register_table(’FND’, ’CUST_FLEX_TEST’, ’T’,
8, 10, 90);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’APPLICATION_ID’, 1, ’NUMBER’, 38, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’ID_FLEX_CODE’, 2, ’VARCHAR2’, 30, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’LAST_UPDATE_DATE’, 3, ’DATE’, 9, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’LAST_UPDATED_BY’, 4, ’NUMBER’, 38, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’UNIQUE_ID_COLUMN’, 5, ’NUMBER’, 38, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’UNIQUE_ID_COLUMN2’, 6, ’NUMBER’, 38, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’SET_DEFINING_COLUMN’, 7, ’NUMBER’, 38, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’SUMMARY_FLAG’, 8, ’VARCHAR2’, 1, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’ENABLED_FLAG’, 9, ’VARCHAR2’, 1, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’START_DATE_ACTIVE’, 10, ’DATE’, 9, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’END_DATE_ACTIVE’, 11, ’DATE’, 9, ’N’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’SEGMENT1’, 12, ’VARCHAR2’, 60, ’Y’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’SEGMENT2’, 13, ’VARCHAR2’, 60, ’Y’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
’SEGMENT3’, 14, ’VARCHAR2’, 60, ’Y’, ’N’);
EXECUTE ad_dd.register_column(’FND’, ’CUST_FLEX_TEST’,
p_next_extent
p_precision
p_scale