This is an old revision of the document!


Programs: OdxSQL

Commands

The following commands are available in OdxSQL:

ATTACH DATABASE

Attach a database

ATTACH DATABASE database [AS alias] FROM filename [ON [INSTANCE] instance]
  [WITH options]

ATTACH SEGMENT

Attach a segment

ATTACH <INDEX | DATA> SEGMENT segment [PHYSICAL physical]
  [ON [INSTANCE] instance] [WITH options]

ATTACH TABLE

Attach a table

ATTACH TABLE table [PHYSICAL "physical"] (column [, column ...])
  [ON [INSTANCE] instance>] [WITH options]
  column: column-name datatype (length)

BENCHMARK

Perform performance benchmarks

BENCHMARK [<table | select-statement>] [WITH options]

CALC

Perform basic calculator functions

CALC expression

CD

Change directories

CD [path]

CLOSE CURSOR

Close a cursor

CLOSE CURSOR [[ON] CURSOR] cursor] [WITH options]

CONNECT

Connect to an environment file

CONNECT [TO] connection_string [USING api] [WITH options]
  Connection string syntax:
    [ host:port:pool ] filename [ node ] &options
  Examples:
    CONNECT example.xml
    CONNECT [server1:7555]example.xml
    CONNECT [server1:7555:pool1]

CONVERT

Export a file with data conversions

CONVERT [statement TO filename [ON [CURSOR] cursor] [WITH options]

CREATE DATABASE

Create a database

CREATE DATABASE database node [node ...] IN "filename" [WITH options]

CREATE ENVIRONMENT

Create an environment file

CREATE ENVIRONMENT environment [attribute [attribute ...]]

CREATE INDEX

Create an index or index group

CREATE <OMNIDEX | QUICKTEXT | FULLTEXT | CUSTOM | NATIVE> INDEX
  [[(owner)]table.]index [ON table]
  (<column | substring> [, <column | substring> ...])]
  [attribute [attribute ...]] IN "filename" [WITH options]

CREATE INDEX GROUP [(owner)]group
  (table.index [, table.index ...])] IN "filename" [WITH options]

CREATE SEGMENT

Create a segment

CREATE [<TEMPORARY | PERMANENT>] <INDEX | DATA> SEGMENT segment
  [PHYSICAL physical] [AS (select)] [ON [CURSOR] cursor]
  [WITH options]

CREATE TABLE

Create a table

CREATE [<[<GLOBAL | LOCAL>] TEMPORARY | PERMANENT>] TABLE table
  [PHYSICAL "physical"] (column [, column ...])
  [<IN "filename" | ON [INSTANCE] instance>] [WITH options]
  column: column-name datatype (length)

DATE

Show the current date and time

DATE

DELETE

Issue an SQL delete statement

DELETE FROM table [WHERE < predicate-list | CURRENT>
  [<ON | OF> [CURSOR] cursor]] [WITH options]

DETACH DATABASE

Detach a previously attached database

DETACH DATABASE database [ON [INSTANCE] instance] [WITH options]

DETACH SEGMENT

Detach a previously attached segment

DETACH SEGMENT segment [ON [INSTANCE] instance] [WITH options]

DETACH TABLE

Detach a previously attached table

DETACH TABLE table [ON [INSTANCE] instance] [WITH options]

DIR

Display a directory of files

DIR fileset [WITH options]

DISCONNECT

Disconnect from an environment file

DISCONNECT [ALL] [[ON [INSTANCE]] instance] [WITH options]

DROP DATABASE

Drop a database

DROP DATABASE [IF EXISTS] database IN "filename" [WITH options]

DROP ENVIRONMENT

Drop an environment

DROP ENVIRONMENT [IF EXISTS] [environment] IN "filename" [WITH options]

DROP INDEX

Drop an index or index group

DROP [<OMNIDEX | NATIVE>] INDEX [IF EXISTS] [[(owner)]table.]index [ON table]
  IN "filename" [WITH options]
DROP INDEX GROUP [IF EXISTS] [(owner)]group IN "filename" [WITH options]

DROP SEGMENT

Drop a segment

DROP SEGMENT [IF EXISTS] segment [ON [INSTANCE] instance>] [WITH options]

DROP TABLE

Drop a table

DROP [<TEMPORARY | PERMANENT>] TABLE [IF EXISTS] table 
  [<IN "filename" | ON [INSTANCE] instance>] [WITH options]

Prev | Next |

Additional Resources

See also:

 
Back to top
programs/odxsql/commands.1433962238.txt.gz ยท Last modified: 2016/06/28 22:38 (external edit)