Parameters

OFF

Turns off the page title but does not erase its definition.

ON

Turns on the printing of page titles.

COL x

Causes any title text following this parameter to print at the specified column position.

S[KIP] x

Inserts the specified number of line breaks before printing any subsequent title text.

TAB x

Skips forward the specified number of character columns. Negative values cause SQL*Plus to skip backward.

LE[FT]

Causes subsequent title text to be printed beginning at the leftmost column of the current title line.

CE[NTER]

Causes subsequent title text to be centered within the current line.

R[IGHT]

Causes subsequent title text to be printed flush right.

BOLD

Makes your title bold by printing it three times. Only title text following the BOLD command is repeated on each line.

FOR[MAT]

Allows you to control how subsequent numeric data in the title is displayed.

format_spec

String that specifies the display format to use for subsequent numeric data in the title.

text

Any text you want to have in the title.

variable

Inserts the value of the specified user variable. You may also use one of the system variables maintained by SQL*Plus. These are summarized in Table 12-1.

Table 12-1. SQL*Plus system variables

System variable

Value

SQL.PNO

The current page number

SQL.LNO

The current line number

SQL.RELEASE

The current Oracle release

SQL.SQLCODE

The error code returned by the most recent SQL query

SQL.USER

The Oracle username of the user running the report

Get Oracle in a Nutshell 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.