Data management
INSERT
Reference and syntax for the INSERT command.
Inserts one or more values into a specified table. Specifying column names is optional.
Syntax
Parameters
Parameter | Description |
---|---|
<table> | The target table where values are to be inserted. |
(<column1>[, <column2>][, ...])] | A list of column names from <table_name> for the insertion. If not defined, the columns are deduced from the <select_statement> . |
<expression> —OR— VALUES ([<value1>[, <value2>][, ...])] | You can specify either a SELECT query that determines values to or an explicit list of VALUES to insert. |
Example
First, create a table populated with student information as follows:
Next, use INSERT
to add two rows into the students
table as follows:
You can also add another row with only some of the columns populated. The missing dob
column for date of birth does not have default value, so Firebolt sets it to NULL
.