Skip to main content
Used when there is a need to insert multiple records in a table, Insert requires a target table name, an array of target column names and a matching dataset. The dataset must be a two-dimensional array of string values, where the first dimension represents the data rows and the second dimension represents each data cell in the row.

Data rows and column values

Built-in table: Extra table: Built-in tables do not have to specify a primary key column. When not specified, all rows are automatically assigned primary key value from the sequence table. When present and equal to “0” or [I:0] they are assigned from the sequence table. When primary key column values are greater than 0, they are used as-is, however, the operation aborts if there is a collision.
Extra tables must not specify a primary key column.

Insert Example

Insert example

The example inserts 2 rows into the y_rental table. Other unspecified columns in the table will be set to default values. As is with all extra tables, the primary key y_rental.id will be auto-incremented by the database.