SQL*Plus Quick Reference Release 8.1.6 A75665-01 |
|
SQL*Plus Quick Reference, 7 of 10
Use the following commands to format, store and print your query results.
ATTRIBUTE [
type_name.attribute_name
[
option
...]]
ALI[AS] alias CLE[AR] FOR[MAT] format LIKE {type_name.attribute_name|alias} ON|OFF
BRE[AK] [ON
report_element
[
action
[
action
]]] ...
{column|expr|ROW|REPORT}
and where action has the following syntax:
[SKI[P] n|[SKI[P]] PAGE] [NODUP[LICATES]|DUP[LICATES]]
BTI[TLE] [
printspec
[
text
|
variable
] ...]|[ON|
OFF]
CL[EAR]
option
...
BRE[AKS] BUFF[ER] COL[UMNS] COMP[UTES] SCR[EEN] SQL TIMI[NG]
COL[UMN] [{
column
|
expr
} [
option
...]]
ALI[AS] alias CLE[AR] FOLD_A[FTER] FOLD_B[EFORE] FOR[MAT] format HEA[DING] text JUS[TIFY] {L[EFT]|C[ENTER]|C[ENTRE]|R[IGHT]} LIKE {expr|alias} NEWL[INE] NEW_V[ALUE] variable NOPRI[NT]|PRI[NT] NUL[L] text OLD_V[ALUE] variable ON|OFF WRA[PPED]|WOR[D_WRAPPED]|TRU[NCATED]
Enter COLUMN followed by column or expr and no other clauses to list the current display attributes for only the specified column or expression. Enter COLUMN with no clauses to list all current column display attributes.
Enter COLUMN [{column |expr} FORMAT format] where the format element specifies the display format for the column.
To change the display format of a NUMBER column, use FORMAT followed by one of the elements in the following table:
COMP[UTE] [
function
[LAB[EL]
text
] ...
OF {
expr
|
column
|
alias
} ...
ON {
expr
|
column
|
alias
|REPORT|ROW} ...]
Calculates and prints summary lines, using various standard computations, on subsets of selected rows, or lists all COMPUTE definitions. The following table lists valid functions. All functions except NUMBER apply to non-null values only.
REPF[OOTER] [PAGE] [
printspec
[
text
|
variable
] ...] |[ON|
OFF]
REPH[EADER] [PAGE] [
printspec
[
text
|
variable
] ...] |[ON|
OFF]
COL n S[KIP] [n] TAB n LE[FT] CE[NTER] R[IGHT] BOLD FORMAT text
SPO[OL] [
filename[
.ext]|OFF|OUT]
Stores query results in an operating system file and, optionally, sends the file to a printer. OFF stops spooling. OUT stops spooling and sends the file to your host computer's standard (default) printer. Enter SPOOL with no clauses to list the current spooling status. If no file extension is given, the default extension, .lst, is used
TTI[TLE] [
printspec
[
text
|
variable
] ...]|[ON|
OFF]
COL n S[KIP] [n] TAB n LE[FT] CE[NTER] R[IGHT] BOLD FORMAT text
|
![]() Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|