This is an old revision of the document!


DRAFT

Omnidex SQL: EXTRACT DDL

Description

The OdxSQL EXTRACT command will Extract DDL statements (CREATE ENVIRONMENT, CREATE DATABASE, CREATE TABLE, CREATE INDEX and CREATE INDEX GROUP) from the currently connected Omnidex Environment to a file. The extracted file can the be modified with an editor and used to build another Omnidex Environment.

The EXTRACT command can also be used to generate INSERT, DELETE, and UPDATE statements from the existing data. This would typically be used in a testing environment.

Syntax

EXTRACT DDL [FOR <ENVIRONMENT [environment] | DATABASE database>]
  [TO filespec] [ON [INSTANCE] instance] [WITH options]

EXTRACT [CLUSTERED] <INSERTS | UPDATES | DELETE_WHERES | DELETE_EXCEPTS>
  FROM tables [WHERE criteria] [TO filename]
  [ON [INSTANCE] instance] [WITH options]

Discussion

  (Note: CLUSTERED requires tables to be one parent and any linked children)
 
Back to top
dev/odxsql/commands/extract/home.1278257730.txt.gz ยท Last modified: 2016/06/28 22:38 (external edit)