Listen Software's How To: SQL Plus Reports and Commands | Database Journal

Listen Software’s How To: SQL Plus Reports and Commands

Mar 25, 2002
1 minute read
  • set headsep–identifies a single character to split a title onto two or more lines
  • ttitle–Top Title
  • btitle–Bottom Title
  • column–Heading and format of a column
  • break on–Spaces between the section
  • compute sum–Calculate subtotals
  • set linesize–Set the maximum number of characters per line
  • set pagesize–Set the number of lines per page
  • set newpage–Set the number of lines between pages
  • spool–Move screen I/O to file I/O
  • set pause–Makes screen display stop between pages
  • save–Save an sql query to file
  • host–Sends commands to the host operating system
  • start–Execute sql from a file
  • edit–Edit sql stored in a file
  • define_editor–name the editor

Example:

column {field name} heading 'Enter Column Description' 
   format ann | 9990.99  truncate | word_wrapped

Other Commands

  • list–Outputs the contents of the SQL Buffer
  • clear buffer–Removes the contents of the SQL Buffer
  • append–Add contents the end of the SQL Buffer
  • c{search pattern}{replace pattern}–Changes a search pattern with a replace pattern for the SQL Buffer.

Running SQL Statements

connect user/password@host

; or / -> to run SQL

@filename -> run the SQL in a file

Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.