SQL*Plus Quick Reference Release 8.1.5 A66735-01 |
|
SQL*Plus Quick Reference, 6 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 requires the following syntax:
[SKI[P] n|[SKI[P]] PAGE] [NODUP[LICATES]|DUP[LICATES]]
BTI[TLE] [
printspec
[
text
|
variable
] ...]|[
OFF|ON]
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 FORMAT followed by the appropriate format element to specify 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
] ...] |[
OFF|ON]
REPH[EADER] [PAGE] [
printspec
[
text
|
variable
] ...] |[
OFF|ON]
COL n S[KIP] [n] TAB n LE[FT] CE[NTER] R[IGHT] BOLD FORMAT text
SPO[OL] [
filename[
.ext]|OFF|OUT]
TTI[TLE] [
printspec
[
text
|
variable
] ...]|[
OFF|ON]
COL n S[KIP] [n] TAB n LE[FT] CE[NTER] R[IGHT] BOLD FORMAT text
|
Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|