There are several other commands that you can use only within SQL*Plus for creating reports.
The table below lists these commands.
Command |
Description |
TTI[TLE] [printspec [text|variable] ...]|[OFF|ON] |
This is the title that appears on the top of each page of a report. Printspec includes formatting commands such as CENTER , LEFT , RIGHT , SKIP 1 (Skip one line), COL n (start next text at column n), BOLD. Turn off or on current TTITLE using TTITLE OFF and TTITLE ON. |
BTI[TLE] [printspec [text|variable] ...]|[OFF|ON] |
Footer that appears at the bottom of each page. Same format as TTITLE . |
BRE[AK] [ON {columnname|ROW|REPORT} [SKIP n | SKIP PAGE ] [DUP[LICATES] | NODUP[LICATES]]] |
Stop the report printing whenever there is a new value in the columnname. Perform the action(s) specified and then continue. By default, the BREAK skips one line (SKIP 1 ) before beginning the next line. By default, when you specify a BREAK on a column, the column value is not repeated in subsequent rows (NODUP), until a new value is found.
|
COMP[UTE] [function [LAB[EL] text] ... OF columnname ON {columnname|ROW|REPORT} ...] |
Compute group functions on columns. Value computed is printed when the corresponding break (set with the BREAK command) is hit. Group functions include COUNT, MAX, MIN, AVG, SUM, STD, VAR . |
REPF[OOTER] [PAGE] [printspec [text|variable] ...] | [OFF|ON] |
Footer printed at the end of the report. Same format as TTITLE . |
REPH[EADER] [PAGE] [printspec [text|variable] ...] | [OFF|ON] |
Header printed at the beginning of the report. Same format as TTITLE . |