SQL*Plus User's Guide and Reference

Contents Index Home Previous Next

CLEAR

Purpose

Resets or erases the current value or setting for the specified option.

Syntax

CL[EAR] option ...

where option represents one of the following clauses:

BRE[AKS]
BUFF[ER]
COL[UMNS]
COMP[UTES]
SCR[EEN]
SQL
TIMI[NG]

Terms and Clauses

Refer to the following list for a description of each term or clause:

BRE[AKS] Removes the break definition set by the BREAK command.
BUFF[ER] Clears text from the buffer. CLEAR BUFFER has the same effect as CLEAR SQL, unless you are using multiple buffers (see SET BUFFER in Appendix F).
COL[UMNS] Resets column display attributes set by the COLUMN command to default settings for all columns. To reset display attributes for a single column, use the CLEAR clause of the COLUMN command.
COMP[UTES] Removes all COMPUTE definitions set by the COMPUTE command.
SCR[EEN] Clears your screen.
SQL Clears the text from SQL buffer. CLEAR SQL has the same effect as CLEAR BUFFER, unless you are using multiple buffers (see SET BUFFER in Appendix F).
TIMI[NG] Deletes all timers created by the TIMING command.
Examples

To clear breaks, enter

SQL> CLEAR BREAKS

To clear column definitions, enter

SQL> CLEAR COLUMNS


Contents Index Home Previous Next