HP c-tree-SQL ISQL and Tools Outfile, Username.tablename, Username.procedurename, Databasename

Page 88

ISQL and Tools

against a corresponding user name before it connects to the database. If omitted, the default value depends on the environment. (On UNIX, the value of the DH_PASSWD environment variable specifies the default password.)

-o outfile

Redirects the output to the specified file. The default is standard output.

-t [ user_name.]table_name [ , ... ]

A comma-separated list of tables and views for which definitions should be generated. Specify a list of specific tables, or use the % to generate definitions for all tables. (Note that, in the -t option, the % character is not a true wildcard character. It substitutes for the entire table_name argument and cannot be used for pattern matching within in a character string. This differs from the behavior of the % in the -p and -T options.)

By default, dbschema generates definitions for tables owned by the current user. Use the optional user_name qualifier to specify a table owned by a different user.

-p [ user_name.]procedure_name [ , ... ]

A comma-separated list of stored procedures for which definitions should be generated. The table names in the list can include the % and underscore ( _ ) characters, which provide pattern- matching semantics:

The % matches zero or more characters in the procedure name

The underscore ( _ ) matches a single character in the procedure name

By default, dbschema generates definitions for procedures owned by the current user. Use the optional user_name qualifier to specify a procedure owned by a different user.

-T [ user_name.]trigger_name [ , ... ]

A comma-separated list of triggers for which definitions should be generated. The table names in the list can include the % and underscore (_) characters, which provide pattern-matching semantics:

The % matches zero or more characters in the trigger name

The underscore ( _ ) character matches a single character in the trigger name

By default, dbschema generates definitions for triggers owned by the current user. Use the optional user_name qualifier to specify a trigger owned by a different user.

database_name

The database for which dbschema should generate definitions. If you omit database_name, dbschema uses the default database, if specified. (How you define the default database varies between operating systems. On UNIX, the value of the DB_NAME environment variable specifies the default database.)

6.2EXAMPLES

The following example uses the -toption with a table list to generate the table definitions only for the specified table in the rdsdb database:

6-2

FairCom Corporation

Image 88
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 CustmastComplete Introductory Tutorial Code DoneQuick Tour Relational Model and Indexing Tutorial ISQLTutorial2.sqlQuick Tour Values Insert Into Insert IntoValues 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 ColumnsOrdervalue Example 3-3 Customizing Format of Numeric Column DisplaysCustomername Customercity 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 BreakspecSkip n ExamplesCustomername Clear Syntax HistoryArgument Column SyntaxOption Break Column Compute Display TitleFormat formatstring ColumnnameHeading headingtext Date-Time Format Strings for the Column Statement Character DescriptionNot Null INT Null ? Type Length ColnameChar Amount OrderinfoSysdate FLD Column TitleNEW Title ComputeAVG MAX MIN SUM Count VariablenameDefine Syntax ValueColposition DisplayvalueCOL columnnumber @columnnameEdit Syntax Related Statements Exit or Quit SyntaxExit 10 GET Syntax Isql GET query.sqlIsql RUN Help Commandsclauses Help SyntaxHistory Syntax Orderstate LotlocationFollowing example illustrates usage of the History statement Host or SH or Syntax HostcommandFrom 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 VarcharType Length Colname Null ? TablenameDate 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 ExamplesRecord name redefined Compilation ErrorsPosition not specified for fixed length record 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 CustmastMoney IntegerVARCHAR6 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