Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
programs:odxsql:home [2009/12/01 22:15]
tdo
programs:odxsql:home [2012/10/26 14:51] (current)
Line 3: Line 3:
 ~~NOTOC~~ ~~NOTOC~~
 ====== OdxSQL Quick Reference ====== ====== OdxSQL Quick Reference ======
- +{{page>:​sql_odxsql_bar&​nofooter&​noeditbtn}} 
-^[[programs:​odxsql:​overview|OdxSQL Overview]]OdxSQL Commands ​^OdxSQL Settings^OdxSQL Scripts^SQL SELECT^ Omnidex SQL ^ +Command Line Options ​Description ​
- +| odxsql | Run OdxSQL. ​ Use the CONNECT command to connect to an Omnidex ​Environment | 
-===== OdxSQL Uses ===== +| odxsql ​env_filespec | Run OdxSQL and connect to the env_filespec. | 
- +| odxsql dsn_filespec ​-odbc |Run OdxSQL and connect to the ODBC File DSN using the Omnidex ​ODBC driver.
-OdxSQL is a console application for manually entering SQL Statements and OdxSQL Commands. +| odxsql ​env_filespec -odxnet -jdbc |Run OdxSQL ​and start an OdxNet background process ​and connect to the env_filespec using the Omnidex JDBC driver.|
- +
-Use OdxSQL for processing Data Definition Scripts to create Omnidex Environments and Indexes. +
- +
-Use OdxSQL to test SQL SELECTs and ODBC, JDBC and Network Services set up. +
- +
-Use OdxSQL to prototype Omnidex Queries and use the Explain Command to review optimization. +
- +
-  +
- +
-===== Common ways to run OdxSQL ===== +
- +
- +
-  os> odxsql +
-  os> odxsql envfile +
-  os> odxsql dsnfile -odxnet -odbc +
-  os> odxsql -? +
-  os> odxsql -use scriptfile +
- +
-Running OdxSQL Explained: ​ +
-| odxsql | Run OdxSQL. ​ Use the CONNECT command to connect to an Environment | +
-| odxsql ​dsnfile -odxnet ​-odbc | Run OdxSQL ​and an OdxNET background process ​and connect to the DSN using ODBC | +
-| odxsql ​envfile ​| Run OdxSQL and connect to the '​envfile' ​|+
 | odxsql -? | Displays OdxSQL command line options | | odxsql -? | Displays OdxSQL command line options |
 | odxsql -use scriptfile | Run OdxSQL and read and process the scriptfile of OdxSQL Statements and Commands.| | odxsql -use scriptfile | Run OdxSQL and read and process the scriptfile of OdxSQL Statements and Commands.|
-===== OdxSQL Important Information ===== +^Set Command ^ ^ 
- +|SET| Shows the current settings| 
-  * OdxSQL connects to an Omnidex Environment or ODBC or JDBC Omnidex File Datasource (DSN)+|SET ? | Shows the list of available SET options| 
-   +|SET TERMINATION ​OFF|Will process SQL Statements without requiring a semi-colon terminator.| 
-  * OdxSQL automatically terminates commands and SQL Statements with a <​cr>​. +|SET TIMER ON|Useful to show how long a statement takes to process.| 
-    * Use the backslash [ \ ]statement continuation character for multi line statements.  +^ Help/Show ^ ^ 
-    * Use SET CONTINUATION ​OFF to use the semi-colon ​command and statement ​terminator. +|HELP|Shows ​a list of OdxSQL ​commands and SQL Statements.| 
- +|HELP <​command>​|Provides specific help on the specified ​command ​or SQL Statement.| 
-  * Use HELP <cr> to display ​a list of commands and SQL Statements. +|SHOW <​table>​|Provides ​information on the specified table.| 
-    * Use HELP <​command> ​to display the syntax for the command. +|SHOW ALL|Provides information on all tables.| 
- +^Editing^ ^ 
-  * Use SET ? to get a list of OdxSQL Set options. +|EDIT| Launch editor ​and send current SQL Statement to either Windows Notedpad or UNIX/Linux vi or emacs. | 
- +|SET EDITOR ​<filespec>|Change ​the default editor. Can also be NOTEPAD, WORDPAD, VI or EMACS.| 
-  * Use Show <​table> ​to show information on a table with the tables'​s column layout+|EDIT filespec|Typically used to edit a script file and then use the USE file to run the script.| 
-    * Use SHOW ALL to see all tables, including internal system ​tables. +|EDIT n|Edits ​the command in the Command History Stack|
- +^Other Commands^ ^ 
-  * Create scripts ​and process with the USE <scriptfilecommand or the OdxSQL -use scriptfile +|HISTORY|Shows a numbered list of previously entered commands.| 
-     +|<​command_number>​|Execute the numbered command from the Command ​History Stack.| 
-  * Statements can be edited with EDIT or using the UP ARROW to edit with arrow and insert/​delete keys+|Period (.)|Execute the last command.| 
-    * Use EDIT to edit the last statement using Windows Notepad or vi or emacs on Unix/Linux+|Comment (;) | A semi-colon as the first character causes the rest of the line to be a comment. | 
-    * Use SET EDIT to change ​the editor of choice+|USE <​filespec>​|Processes the OdxSQL ​commands in a script file.| 
-  +|SET ERRORS | Sets how errors will be handled when processing a USE file. | 
- +|EXPLAIN|Shows the Explain Plan for the previous ​SELECT ​Statement.| 
-===== See Also ===== +|SET AUTOEXPLAIN ON|Automatically show the Explain Plan instead of the SELECT ​output.| 
- +|SET EXPLAIN |Sets options for the Explain Plan. |
-    * [[programs:​odxsql:​overview ​OdxSQL Overview ]] +
-    * OdxSQL ​Command ​Line Options +
-    * OdxSQL Commands +
-    * OdxSQL Settings +
-    ​* ​OdxSQL ​Script Examples +
-    * SQL SELECT +
-    * SQL SELECT ​Examples +
-    * Omnidex SQL Statements+
  
-^[[programs:​odxsql:​overview|OdxSQL ​Overview]]OdxSQL Commands ​^OdxSQL Settings^OdxSQL Scripts^SQL SELECTOmnidex SQL ^+^ OdxSQL ​Settings ​^ ^ ^ ^ ^ ^ 
 +|API |AUTODISPLAY |AUTOEXPLAIN |AUTOFETCH |AUTOPSEUDOCOLUMNS |AUTORECONNECT| 
 +|AUTOSUBPROCESS|CHAR|CURSOR|CURSORDISPLAY|DEFAULTS|EDITOR| 
 +|ENDIAN |ERRORDISPLAY|ERRORS|EXPLAIN SET|FILE_BASELINE|HEADERS| 
 +|HEX|HISTORY|INTERRUPTS|MEMORY_BASELINE|MULTICONNECT|MULTILINE| 
 +|NULL_INDICATORS|OMNIDEX_DEBUG|OPTIMIZATION|ODXSQL_DEBUG|PAGELENGTH|PAGEWIDTH| 
 +|PREPROCESSOR|PROGRESS|PROMPT|PSEUDOCOLUMNS|QUALIFY_COUNTS|REDEFROWIDS| 
 +|REQUIRED_OPTIMIZATION|SILENT_MODE|SQL_LOGFILE|SQL_LOGGING|SQL_SYNTAX|STATISTICS| 
 +|STATISTICS_COMMENT|STATUSDISPLAY|TERMINATION|TIMEOUT|TIMER|
  
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
programs/odxsql/home.1259705714.txt.gz · Last modified: 2012/10/26 14:48 (external edit)