Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
NAME
sqlbuffer - manage shell's SQL buffer

SYNOPSIS
sqlbuffer [OPTION]
 
DESCRIPTION
sqlbuffer works with the local shell's SQL buffer. The -l and -s options require that a file name be specified. On -s option, if file already exists, buffer is appended to file;
if file does not exist, file is created and buffer is written to file.

If OPTION is not supplied, sqlbuffer prints the SQL buffer contents to standard output.

OPTIONS
-c
Clear the buffer.

 -e
Edit the buffer.
 
-l FILE
Load the buffer contents from file.
 -p
Print the SQL buffer contents to standard output.

 -s FILE
Save the buffer contents to file.

EXAMPLES
To clear the SQL Buffer of all contents
No Format
sqlbuffer -c

To edit the SQL Buffer contents
No Format
sqlbuffer -e

To load a file into the SQL Buffer
No Format
sqlbuffer -l file.txt

To save the SQL Buffer contents to a file
No Format
sqlbuffer -s file.txt

To print the SQL Buffer contents to screen
No Format
sqlbuffer -p


SEE ALSO

      sqlhistory