This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
dev:sql:insert [2009/11/30 15:27] tdo created |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{page>:top_add&nofooter&noeditbtn}} | ||
| - | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
| - | ====== Omnidex SQL: ====== | ||
| - | ===== Description ===== | ||
| - | |||
| - | ===== Syntax ===== | ||
| - | |||
| - | INSERT INTO table < [(column-list)] < VALUES (value-list) | select statement >> | ||
| - | [ON [INSTANCE] instance] | ||
| - | [WITH options] | ||
| - | |||
| - | Statement | ||
| - | |||
| - | ===== 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 ===== | ||
| - | |||
| - | ==== Simple ==== | ||
| - | > INSERT INTO CUSTOMERS (COMPANY, CONTACT) VALUES ('DISC', 'JOHN DOE') | ||
| - | |||
| - | |||
| - | {{page>:bottom_add&nofooter&noeditbtn}} | ||