SQL Plus - SQL Buffer

Card Puncher Data Processing

About

The SQL Buffer contains the most recently executed:

The buffer has no command history list and does not record SQL*Plus commands.

How to

Append

  • at the beginning, just use 0 followed by your statement
0 1
0 2
0 3
list
1  3
  2  2
  3* 1

  • to a line number: 1-9

Example

1 hello
2 nico
list
1  hello
  2* nico

List the buffer

SQL Plus - LIST (the SQL Buffer)

Change it

SQL Plus - CHANGE

Delete lines

SQL Plus - DEL

Save it

SQL Plus - Save (The SQL Buffer)

Delete all lines

CLEAR BUFFER

Run it

SQL Plus - Run (the SQL Buffer)

Configuration

The name and location of the buffer file when editing it can be configured with the following variable

SET EDITFILE c:\temp\sqlbuffer.sql





Discover More
Card Puncher Data Processing
Oracle Database - Explain Plan

EXPLAIN PLAN is an Oracle SQL Command that tell you what the query plan for a given SQL would be : if executed it right now in the current session with the current settings For this purpose, it...
Card Puncher Data Processing
SQL Plus - APPEND (to the SQL Buffer)

Adds text to the end of the current line in the SQL buffer.
Card Puncher Data Processing
SQL Plus - CHANGE

The CHANGE command changes the first occurrence of the specified text on the current line of the SQL buffer.
Card Puncher Data Processing
SQL Plus - Clear

CLEAR resets or erases the current value or setting for the specified option. where option represents one of the following clauses: BRE[AKS] BUFF[ER] COL[UMNS] COMP[UTES] SCR[EEN] SQL...
Card Puncher Data Processing
SQL Plus - Configuration

See: Buffer configuration Configuring SQLPlus Tns Names Configuration
Card Puncher Data Processing
SQL Plus - Edit Command

The edit command invokes an operating system text editor on the contents of: the specified file or on the contents of the SQL buffer. where: file name is the name of a file without extension....
Card Puncher Data Processing
SQL Plus - LIST (the SQL Buffer)

The list command lists one or more lines of the SQL buffer. where: n is the first line to show m is the last line to show LAST is an alias for the last line of the buffer Enter LIST or...
Card Puncher Data Processing
SQL Plus - Run (the SQL Buffer)

Lists and executes the most recently executed SQL command or PL/SQL block which is stored in the SQL buffer.
Card Puncher Data Processing
SQL Plus - Save (The SQL Buffer)

Saves the contents of the SQL buffer in a script.



Share this page:
Follow us:
Task Runner