You can use Query Builder to create different types of SQL queries, including SELECT, INSERT INTO, UPDATE, and DELETE.
The table lists the supported query types.
| Name | Description |
|---|---|
| SELECT | Creates a query that retrieves data from one or more tables. |
| INSERT RESULTS | Creates an INSERT INTO statement that adds data from multiple tables into a single target table. |
| INSERT VALUES | Creates an INSERT INTO statement that adds individual rows and values to a table. |
| UPDATE | Creates a statement that updates one or more records in a table. |
| DELETE | Creates a statement that deletes records from a table. |
Note
You can use the
INSERT VALUESstatement to add a single row to a table.
The current query type appears in the upper-left corner of the diagram. The default query type is SELECT.
To change the query type, do one of the following:
1. Change the query type to INSERT RESULTS.
2. In the Choose Target Table to Insert Data to dialog, select the target database, schema, and table or view to insert data into.
3. To save the changes, click OK.
Tip
If the list contains many tables, use the search box to quickly find a table or view. As you type, matching entries are highlighted in the Tables and Views column.
This tip applies to all query types.

4. Specify the values and conditions in the corresponding tabs of Tabbed Editor. For more information, see:
5. Optional: To preview the query, click Text in the bottom panel of the Query Builder document.
1. Change the query type to INSERT VALUES.
2. In the Choose Target Table dialog, select the database, schema, and table or view to insert data into.
3. To save the changes, click OK.

4. In Tabbed Editor, enter the values to the columns.

5. Optional: To preview the query, click Text in the bottom panel of the Query Builder document.
1. Change the query type to UPDATE.
2. In the Choose Target Table dialog, select the database, schema, and table or view to update.
3. To save the changes, click OK.

4. On the Update tab, define the column values:
5. On the Where tab, add a filter condition to specify which records to update. For instructions, see Design conditions for WHERE clauses.
6. Optional: To preview the query, click Text in the bottom panel of the Query Builder document.
1. Change the query type to DELETE.
2. In the Choose Target Table dialog, select the database, schema, and table or view from which you want to delete records.
3. On the Where tab, define the condition that determines which rows to delete. For instructions, see Design conditions for WHERE clauses.

4. Optional: To preview the query, click Text in the bottom panel of the Query Builder document.