210 likes | 345 Views
Chapter 14 Formatting Readable Output. Basic Report Creation in SQL*Plus. Enter format for the report Enter a query to retrieve data. COLUMN Command. Formats both column heading and data displayed in column. COLUMN Command Options. FORMAT Option. Specifies format model for the data.
E N D
Basic Report Creation in SQL*Plus • Enter format for the report • Enter a query to retrieve data
COLUMN Command Formats both column heading and data displayed in column
FORMAT Option Specifies format model for the data
HEADING Option Specifies a column heading
SET Command • SET command used to change the UNDERLINE variable • Assign blank space to add separator with FORMAT option of COLUMN command
NULL Option Provides substitute for NULL values
Report Headers and Footers • Header • Appears at top of reports • Created with TTITLE command • Footer • Appears at bottom of reports • Created with BTITLE command
BREAK Command • Suppresses duplicate data • Allows blank lines after groups
CLEAR Command Used to clear settings applied to the BREAK and COLUMN commands
COMPUTE Command Can include AVG, SUM, COUNT, MAX, or MIN keywords
SPOOL Command Saves results to text file