April 2000
Intermediate to advanced
94 pages
1h 52m
English
ATTRIBUTE
ATTRIBUTE [object_type.attribute |
attribute_alias
[ALI[AS] alias | CLE[AR]|
FOR[MAT] format_spec |
LIKE source_attribute |
ON | OFF...]]The ATTRIBUTE command is used to format attributes of an Oracle8 object type. For example:
ATTRIBUTE employee_type.employee_salary - ALIAS emp_sal ATTRIBUTE emp_sal FORMAT "$999,999.99" ATTRIBUTE employee_type.employee_salary - FORMAT "$999,999.99"
Issuing the ATTRIBUTE command with no parameters gets you a list of all current attribute settings.
Is the name of an Oracle8 object type.
Is the name of an attribute of the specified object type and is the attribute you are formatting. If you stop here and don’t supply any other parameters, the current display settings for this attribute are shown.
The ALIAS, CLEAR, FORMAT, LIKE, ON, and OFF clauses function just as they do in the COLUMN command.