ISQL and Tools

Office Furniture Inc. 10 records selected ISQL>

3.7.17SAVE

Syntax

S[AVE] filename;

Description

The SAVE statement saves the last statement in the history buffer in filename. The GET and START statements can then be used to read and execute the statement from a file.

If filename does not exist, ISQL creates it. If filename does exist, ISQL overwrites it with the contents of the last statement in the history buffer.

Example

ISQL>

! more

test.SQL

test.sql: No

such file or directory

ISQL>

select

customer_name, customer_city from customers;

CUSTOMER_NAME

CUSTOMER_CITY

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

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

Sports Cars Inc.

Sewickley

Mighty Bulldozer Inc.

Baldwin Park

Ship Shapers Inc.

South Miami

Tower Construction Inc.

Munising

Chemical Construction Inc.

Joplin

Aerospace Enterprises Inc.

Scottsdale

Medical Enterprises Inc.

Denver

Rail Builders Inc.

Claymont

.

 

.

 

.

 

ISQL> save test.sql

 

ISQL> ! ls -al test.sql

51 May 1 18:21 test.sql

-rw-r--r-- 1 ADMIN

ISQL> ! more test.sql

 

select customer_name, customer_city from customers ISQL>

3.7.18SET

Syntax

SET set_option ; set_option ::

HISTORY number_statements

PAGESIZE

number_lines

LINESIZE

number_characters

3-34

FairCom Corporation

Page 60
Image 60
HP c-tree-SQL ISQL and Tools manual Save Syntax, SET Syntax, Pagesize, Linesize