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 formats attributes of an Oracle 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 displays a list of all current attribute settings.

Parameters

object_type

The name of an Oracle object type.

attribute

The name of an attribute of the specified object type and 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, 2nd Edition 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.