Skip to Main Content
Oracle SQL*Plus Pocket Reference
book

Oracle SQL*Plus Pocket Reference

by Jonathan Gennick
April 2000
Intermediate to advanced content levelIntermediate to advanced
94 pages
1h 52m
English
O'Reilly Media, Inc.
Content preview from Oracle SQL*Plus Pocket Reference

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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle SQL*Plus Pocket Reference, 3rd Edition

Oracle SQL*Plus Pocket Reference, 3rd Edition

Jonathan Gennick
Expert Oracle Exadata

Expert Oracle Exadata

Kerry Osborne, Randy Johnson, Tanel Pöder

Publisher Resources

ISBN: 1565929411Catalog PageErrata