HP c-tree-SQL ISQL and Tools manual Related Documentation, Isql and Tools

Page 8

ISQL and Tools

lowercase

Lowercase type denotes either user-supplied elements or names of other

 

syntax diagrams. User-supplied elements include names of tables, host-

 

language variables, expressions, and literals. Syntax diagrams can refer

 

to each other by name. If a diagram is named, the name appears in lower-

 

case type above and to the left of the diagram, followed by a double-colon

 

(for example, privilege ::). The name of that diagram appears in lowercase

 

in diagrams that refer to it.

 

 

{ }

Braces denote a choice among mandatory elements. They enclose a set

 

of options, separated by vertical bars ( ). You must choose at least one of

 

the options.

 

 

[ ]

Brackets denote an optional element or a choice among optional ele-

 

ments.

 

 

Vertical bars separate a set of options.

 

 

...

A horizontal ellipsis denotes that the preceding element can optionally be

 

repeated any number of times.

 

 

( ) , ;

Parentheses and other punctuation marks are required elements. Enter

 

them as shown in syntax diagrams.

 

 

RELATED DOCUMENTATION

Refer to the following documents for more information:

c-treeSQL Reference

Describes the syntax and semantics of statements and language

Manual

elements for the c-treeSQL interface.

 

 

c-treeSQL Embedded

Describes how to develop host language programs containing

SQL User’s Guide

embedded SQL statements that access c-treeSQL environments.

 

 

c-treeSQL ODBC Driver

Describes c-treeSQL support for the ODBC interface and how to

Guide

configure the c-treeSQL ODBC Driver.

 

 

c-treeSQL JDBC Driver

Describes c-treeSQL support for the JDBC interface, configuring

Guide

the c-treeSQL JDBC Driver, and how applications connect to

 

databases through the driver.

 

 

c-treeSQL Guide to

Describes how to write and use Java stored procedures and trig-

Java Stored Procedures

gers—Java routines which contain SQL statements and are

and Triggers

stored in a database. ODBC, JDBC, and SQL applications call

 

stored procedures, while triggers are invoked automatically by

 

database updates.

 

 

c-tree Plus Quick Start

Describes the installation process, how to get started, and rec-

and

ommendations for c-tree Plus ISAM/Low-Level, c-treeDB, c-

Product Overview

treeVCL/CLX, c-tree Server, and c-treeSQL Server.

Guide

 

 

 

vi

FairCom Corporation

Image 8
Contents Isql and Tools Reference Guide For use with c-treeSQL ServerPage Table of Contents Data Load Utility dbload Tutorial Source Code IiiFairCom Corporation Syntax Diagram Conventions Documentation OverviewPurpose of this Manual AudienceRelated Documentation Isql and ToolsIntroduction OverviewIsql and Tools FairCom Corporation Quick Tour Introductory TutorialInit IsqlDefine ManageIsql Create Table Custmast Isql Commit Work CustmastQuick Tour DoneComplete Introductory Tutorial Code Relational Model and Indexing Tutorial ISQLTutorial2.sqlQuick Tour Values Insert IntoValues Insert Into Commit Work QTY PriceComplete Relational Model and Indexing Tutorial Source Code Locking Tutorial ISQLTutorial3.sql@ISQL @iSQLTutorial3.sql Isql Delete from Custmast Complete Locking Tutorial Source Code Transaction Processing Tutorial ISQLTutorial4.sqlTransaction Rollback Work Complete Transaction Processing Tutorial Source Code Isql Statements Starting Interactive SQLSyntax ArgumentsPassword Statement History SupportUsername ConnectstringFormatting Output of Isql Queries Isql StatementsIsql Statements for Statement History Support Statement SummaryIsql Statements for Query Formatting Summary DisplayExample 3-1 Unformatted Query Display from Isql Customername Customercity Orderid OrdervalueFormatting Column Display with the Column Statement Example 3-2 Controlling Display Width of Character ColumnsCustomername Customercity Example 3-3 Customizing Format of Numeric Column DisplaysOrdervalue Example 3-4 Specifying Column Breaks and Values with Display Numorders Customername Example 3-6 Specifying a Query Header and Footer with Title Help and Table Statements Transaction SupportIsql Reference 1 @ Execute SyntaxDescription ExampleBreak Syntax BreakspecCustomername ExamplesSkip n Clear Syntax HistoryArgument Column SyntaxOption Break Column Compute Display TitleHeading headingtext ColumnnameFormat formatstring Date-Time Format Strings for the Column Statement Character DescriptionChar Null ? Type Length ColnameNot Null INT Sysdate OrderinfoAmount FLD Column TitleNEW Title ComputeAVG MAX MIN SUM Count VariablenameDefine Syntax ValueColposition DisplayvalueCOL columnnumber @columnnameEdit Syntax Exit Exit or Quit SyntaxRelated Statements 10 GET Syntax Isql GET query.sqlIsql RUN Help Commandsclauses Help SyntaxHistory Syntax Orderstate LotlocationFollowing example illustrates usage of the History statement From HostcommandHost or SH or Syntax List Syntax Quit or Exit Syntax 16 RUN SyntaxQuit Isql HistorySave Syntax 18 SET SyntaxPagesize LinesizePagesize numberlines Connection databasename Default Transaction Isolation Level isolationlevelIsql Break on Isql Select TBL from Systables TBL TBLShow Syntax Is Default ? Spool SyntaxFilename on Database ConnectionsStart Syntax Argument …Isql Spool STK on Isql Spool OFFNull ? Type Length Colname Not Null INT Not Null VarcharDate TablenameType Length Colname Null ? Title Syntax Left Center Right COL nText DoubleIsql Clear Title Isql and Tools FairCom Corporation Data Load Utility dbload IntroductionDbload Command Line Syntax CommandsfilePrerequisites for Dbload OptionsData File Formats Data Load Utility dbloadCommands File Variable Length RecordsFixed Length Records Next RecordDefine Record Statement Char Short Long Float DoubleFor Each Statement NullExample 4-1 Sample dbload commands files ExamplesPosition not specified for fixed length record Compilation ErrorsRecord name redefined Fatal Errors Isql and Tools FairCom Corporation Data Unload Utility dbdump Prerequisites for DbdumpDbdump Command Line Syntax Data Unload Utility dbdump Short Long Float DoubleFor Record Statement Define Record custrec of Fixed Length 37 AS Isql and Tools FairCom Corporation Schema Export Utility dbschema Username.procedurename OutfileUsername.tablename Username.triggernameSchema Export Utility dbschema DbschemaImport Begin ENDIsql and Tools FairCom Corporation Tutorial Source Code Commit Work Select * from Custmast Delete from CustmastVARCHAR6 IntegerMoney Tutorial Source Code Commit Work Delete from CustmastImdesc VARCHAR48 Select * from orderlist Select * from orderitems Isql and Tools FairCom Corporation Symbols Index-iIsql Index-ii FairCom CorporationIndex Index-iii FairCom Corporation