10.12.2012 Views

SQL*Plus User's Guide and Reference - InfoLab

SQL*Plus User's Guide and Reference - InfoLab

SQL*Plus User's Guide and Reference - InfoLab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

viii<br />

Restrictions ................................................................................................................................. 6-23<br />

System Variables <strong>and</strong> i<strong>SQL*Plus</strong> Preferences......................................................................... 6-23<br />

Substitution Variables in i<strong>SQL*Plus</strong>............................................................................................ 6-24<br />

i<strong>SQL*Plus</strong> Input Required Screen ............................................................................................ 6-25<br />

Passing Parameters through the START Comm<strong>and</strong>.................................................................. 6-26<br />

Communicating with the User ....................................................................................................... 6-28<br />

Receiving a Substitution Variable Value ............................................................................... 6-28<br />

Customizing Prompts for Substitution Variable ................................................................... 6-29<br />

Sending a Message <strong>and</strong> Accepting Return as Input .............................................................. 6-31<br />

Clearing the Screen ..................................................................................................................... 6-31<br />

Using Bind Variables ....................................................................................................................... 6-32<br />

Creating Bind Variables............................................................................................................. 6-32<br />

Referencing Bind Variables ....................................................................................................... 6-32<br />

Displaying Bind Variables......................................................................................................... 6-33<br />

Using REFCURSOR Bind Variables ............................................................................................. 6-33<br />

7 Formatting <strong>SQL*Plus</strong> Reports<br />

Formatting Columns........................................................................................................................... 7-1<br />

Changing Column Headings ...................................................................................................... 7-1<br />

Formatting NUMBER Columns.................................................................................................. 7-4<br />

Formatting Datatypes .................................................................................................................. 7-5<br />

Copying Column Display Attributes......................................................................................... 7-9<br />

Listing <strong>and</strong> Resetting Column Display Attributes .................................................................. 7-9<br />

Suppressing <strong>and</strong> Restoring Column Display Attributes ...................................................... 7-10<br />

Printing a Line of Characters after Wrapped Column Values ............................................. 7-10<br />

Clarifying Your Report with Spacing <strong>and</strong> Summary Lines ..................................................... 7-12<br />

Suppressing Duplicate Values in Break Columns ................................................................. 7-13<br />

Inserting Space when a Break Column's Value Changes ..................................................... 7-14<br />

Inserting Space after Every Row .............................................................................................. 7-15<br />

Using Multiple Spacing Techniques ........................................................................................ 7-15<br />

Listing <strong>and</strong> Removing Break Definitions ................................................................................ 7-16<br />

Computing Summary Lines when a Break Column's Value Changes ............................... 7-17<br />

Computing Summary Lines at the End of the Report........................................................... 7-21<br />

Computing Multiple Summary Values <strong>and</strong> Lines................................................................. 7-22<br />

Listing <strong>and</strong> Removing COMPUTE Definitions ...................................................................... 7-23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!