This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
dev:sql:update_indexes [2010/05/10 22:33] tdo created |
dev:sql:update_indexes [2012/10/26 14:51] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{page>:top_add&nofooter&noeditbtn}} | ||
| <html><div align="center"><span style="color:red">DRAFT</span></div></html> | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
| - | ===== Update Indexes ===== | + | ====== Omnidex SQL: UPDATE INDEXES ====== |
| + | ===== Description ===== | ||
| + | |||
| + | The Omnidex UPDATE INDEXES statement reads the data specified in the Omnidex Environment and synchronizes the Omnidex indexes for an entire database or for an individual table. | ||
| + | |||
| + | If the Omnidex indexes have not been previously synchronized, then the UPDATE INDEXES statement will create the physical OS files needed to store the Omnidex index information using the information from the files/index prefix specified in the CREATE DATABASE statement. | ||
| + | |||
| + | If the Omnidex indexes have been previously synchronized, then the UPDATE INDEXES statement will re-use the existing index files by first removing the existing index information and re-synchronizing the Omnidex indexes by re-reading the data. | ||
| + | ===== Syntax ===== | ||
| + | <code> | ||
| + | UPDATE INDEXES [FOR <ENVIRONMENT [environment] | ||
| + | DATABASE database | | ||
| + | TABLE table | | ||
| + | COLUMN column | | ||
| + | INDEX index > ] | ||
| + | [ON [INSTANCE] instance] | ||
| + | [WITH options] | ||
| + | </code> | ||
| + | ===== Examples ===== | ||
| + | ==== Update Indexes for DATABASE ==== | ||
| <code> | <code> | ||
| odxsql> update indexes for database SIMPLE | odxsql> update indexes for database SIMPLE | ||
| Line 12: | Line 30: | ||
| Updated indexes for INDIVIDUALS | Updated indexes for INDIVIDUALS | ||
| Omnidex indexes updated environment SIMPLE_ENV | Omnidex indexes updated environment SIMPLE_ENV | ||
| + | odxsql> | ||
| + | </code> | ||
| + | ==== Update Indexes for TABLE ==== | ||
| + | <code> | ||
| + | odxsql> update indexes for database simple table states | ||
| + | Update indexes for STATES | ||
| + | Omnidex indexes updated ... | ||
| odxsql> | odxsql> | ||
| </code> | </code> | ||
| {{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} | ||