iSQL*Plus User's Guide and Reference
Release 9.0.1

Part Number A88826-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Command Reference, 26 of 38


REPHEADER

REPH[EADER] [PAGE] [printspec [text|variable] ...] | [ON|OFF]

where printspec represents one or more of the following clauses used to place and format the text:

Places and formats a specified report header at the top of each report, or lists the current REPHEADER definition.

Terms | Usage | Examples | Top

Refer to the following list for a description of each term or clause. These terms and clauses also apply to the REPFOOTER command.

PAGE

text

variable

OFF

COL n

S[KIP] [n]

TAB n

LE[FT] CE[NTER] R[IGHT]

BOLD

FORMAT text

Enter REPHEADER with no clauses to list the current REPHEADER definition.

Usage | Terms | Examples | Top

If you do not enter a printspec clause before the text or variables, REPHEADER left justifies the text or variables.

You can use any number of constants and variables in a printspec. SQL*Plus displays the constants and variables in the order you specify, positioning and formatting each constant or variable as specified by the printspec clauses that precede it.

Examples | Terms | Usage | Top

To define "EMPLOYEE LISTING REPORT" as a report header on a separate page, and to center it, enter:

Keyboard icon
REPHEADER PAGE CENTER 'EMPLOYEE LISTING REPORT'
TTITLE RIGHT 'Page: ' FORMAT 999 SQL.PNO
SELECT LAST_NAME, SALARY
FROM EMP_DETAILS_VIEW
WHERE SALARY > 12000;

Screen icon
                                                                      Page:    1
                             EMPLOYEE LISTING REPORT

                                                                      Page:    2
LAST_NAME                     SALARY
------------------------- ----------
King                           24000
Kochhar                        17000
De Haan                        17000
Russell                        14000
Partners                       13500
Hartstein                      13000
                          ----------
sum                            98500

6 rows selected.

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback