This shows you the differences between two versions of the page.
dev:sql:statements:insert:home [2010/07/02 18:10] tdo |
dev:sql:statements:insert:home [2016/06/28 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{page>:top_add&nofooter&noeditbtn}} | ||
- | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
- | ====== Omnidex SQL: INSERT ====== | ||
- | {{page>:sql_bar&nofooter&noeditbtn}} | ||
- | ===== Description ===== | ||
- | |||
- | Inserts one or more records into a table and depending on the Omnidex index set up will automatically synchronize the Omnidex Indexes. | ||
- | ===== Syntax ===== | ||
- | <code> | ||
- | INSERT INTO table_spec < [(column-list)] < VALUES (value-list) | select statement > > | ||
- | [ON [INSTANCE] instance] | ||
- | [WITH options] | ||
- | |||
- | INSERT <table> SELECT <statement> | ||
- | </code> | ||
- | |||
- | ===== Discussion ===== | ||
- | |||
- | |||
- | == table == | ||
- | |||
- | 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. | ||
- | |||
- | == [(column-list)] == | ||
- | |||
- | Optional if all columns are referenced in the value-list, otherwise required. | ||
- | |||
- | == value-list | select statement == | ||
- | |||
- | Required. Specify a list of values to be inserted into the table or a select statement that will return the results to be inserted into the table. | ||
- | |||
- | == [ON [INSTANCE] instance] == | ||
- | |||
- | Optional. Specify the instance that this command will be executed on. If omitted, the current instance will be used. | ||
- | |||
- | == [WITH options] == | ||
- | |||
- | Optional - Specify options to be used for this command. | ||
- | |||
- | ===== Examples ===== | ||
- | > INSERT INTO CUSTOMERS (COMPANY, CONTACT) VALUES ('DISC', 'JOHN DOE') | ||
- | |||
- | |||
- | {{page>:bottom_add&nofooter&noeditbtn}} |