ISQL and Tools

PAGE

Causes a break at the end of each page. The end of a page is specified

 

in the SET PAGESIZE statement. See Section 3.7.18 "SET" on page 3-

 

34 for details on the SET statement.

REPORT

Causes a break at the end of a report or query.

SKIP n

The optional SKIP clause can be used to skip the specified number of lines when the specified break occurs and before processing of any associated DISPLAY statements.

Examples

The following examples illustrate how various break settings and corresponding DISPLAY statements affect the display of the same query.

ISQL> break

no break specified

ISQL> select customer_name from customers; -- Default display

CUSTOMER_NAME

-------------

Sports Cars Inc. Mighty Bulldozer Inc. Ship Shapers Inc.

Tower Construction Inc. Chemical Construction Inc. Aerospace Enterprises Inc. Medical Enterprises Inc. Rail Builders Inc.

Luxury Cars Inc. Office Furniture Inc. 10 records selected

ISQL> -- Set DISPLAY values for different breaks:

ISQL> display "Break on change in value of customer_name!" on customer_name; ISQL> display "Break on every row!" on row;

ISQL> display "Break on page (page size set to 2 lines)" on page; ISQL> display "Break on end of report!" on report;

ISQL> set pagesize 2

ISQL> break on customer_name

ISQL> select customer_name from customers;

CUSTOMER_NAME

-------------

Sports Cars Inc.

Break on change in value of customer_name! Mighty Bulldozer Inc.

Break on change in value of customer_name! Ship Shapers Inc.

Break on change in value of customer_name!

.

.

.

ISQL> break on row

3-14

FairCom Corporation

Page 40
Image 40
HP c-tree-SQL ISQL and Tools manual Examples, Skip n, Customername