This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
dev:sql:statements:insert:home [2009/11/30 15:42] 127.0.0.1 external edit |
dev:sql:statements:insert:home [2016/06/28 22:38] (current) |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <html><div align="center"><span style="color:red">DRAFT</span></div></html> | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
| ====== Omnidex SQL: INSERT ====== | ====== Omnidex SQL: INSERT ====== | ||
| + | {{page>:sql_bar&nofooter&noeditbtn}} | ||
| ===== Description ===== | ===== Description ===== | ||
| Line 7: | Line 8: | ||
| Inserts one or more records into a table and depending on the Omnidex index set up will automatically synchronize the Omnidex Indexes. | Inserts one or more records into a table and depending on the Omnidex index set up will automatically synchronize the Omnidex Indexes. | ||
| ===== Syntax ===== | ===== Syntax ===== | ||
| - | + | <code> | |
| - | INSERT INTO table < [(column-list)] < VALUES (value-list) | select statement > > | + | INSERT INTO table_spec < [(column-list)] < VALUES (value-list) | select statement > > |
| [ON [INSTANCE] instance] | [ON [INSTANCE] instance] | ||
| [WITH options] | [WITH options] | ||
| - | + | INSERT <table> SELECT <statement> | |
| + | </code> | ||
| ===== Discussion ===== | ===== Discussion ===== | ||
| - | == table == | + | == table_spec == |
| Required. The name of the table to insert data into, as defined in the Omnidex environment catalog or as assigned to a table created with the create table command. | Required. The name of the table to insert data into, as defined in the Omnidex environment catalog or as assigned to a table created with the create table command. | ||
| Line 38: | Line 39: | ||
| ===== Examples ===== | ===== Examples ===== | ||
| - | |||
| - | ==== Simple ==== | ||
| > INSERT INTO CUSTOMERS (COMPANY, CONTACT) VALUES ('DISC', 'JOHN DOE') | > INSERT INTO CUSTOMERS (COMPANY, CONTACT) VALUES ('DISC', 'JOHN DOE') | ||
| {{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} | ||