|
SQL Reference |
Commands |
|
ATTACHATTACH is used to attach an Omnidex Standalone Table (OST) file. This table will then be made available for manipulation the same as any other table in the environment, for the duration of the Omnidex application or until it is detached. OST's are created using the Omnidex EXPORT statement. export company, contact, state, status from customers, orders where customers.customer_no=orders.customer_no and status='cncl' to cncl.ost with ost attach ost cncl.ost as CANCELED select company, contact from customers where state='CO' Because Omnidex indexes are not installed on the OST, queries are performed by a serial read. Detach the attached OST from the open environment using the DETACH command.
SyntaxATTACH OST filespec AS table [ON [INSTANCE] instance][WITH options] ATTACH OST filespec AS table [ON [INSTANCE] instance] [WITH options]
Options
ExampleThis example creates an OST that contains customers who have canceled their order. Then customers whose orders are on back order, are added to the OST. >export company, contact, state, status from customers,
orders where customers.customer_no=orders.customer_no and status='cncl'
to cncl.ost with ost >attach ost /users/test/cncl as CANCELED >export company, contact, state, status from customers,
orders where customers.customer_no=orders.customer_no and status='back'
to cncl with ost, append >select company, contact from customers where state='CO' 22 rows returned >detach ost canceled table CANCELED detached
|
|
APIs | SQL Reference | Stored Procedures | Third Party Tools | Debugging |
OmniAccess API |
ODBC |
JDBC |
Nested Queries |
SET Operations |
WITH Options |
CURSOR / INSTANCE |
Commands |
Functions |
SQL Server |
Oracle |
MS Access |
Ms Excel |