Name

ATTRIBUTE

Synopsis

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.

Parameters

object_type

Is the name of an Oracle8 object type.

attribute

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.

Get Oracle SQL*Plus Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.