CLEAR

The CLEAR command allows you to easily delete all column definitions, break settings, compute definitions, and so forth:

CL[EAR] {BRE[AKS]|BUFF[ER]|COL[UMNS]|COMP[UTES]|SCR[EEN]|SQL|TIMI[NG]}

where:

CL[EAR]

Is the command, which may be abbreviated to CL.

BRE[AKS]

Deletes any break setting you may have defined using the BREAK command.

BUFF[ER]

Erases the contents of the buffer.

COL[UMNS]

Deletes any column definitions you may have made using the COLUMN command.

COMP[UTES]

Deletes any computations you may have defined using the COMPUTE command.

SCR[EEN]

Clears the screen.

SQL

Erases the contents of the SQL buffer.

TIMI[NG]

Deletes any timers you may have created using the TIMING command.

The different uses of the CLEAR command are described in various chapters throughout this book. Each option is described in the chapter relevant to that topic. CLEAR COMPUTES, for example, is described in Chapter 3, because that’s where the COMPUTE command is explained.

Get Oracle SQL*Plus: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.