You can create a new row in the current table using an Insert Values query. When you create an Insert Values query, you specify:
Note In Oracle, you can also use named sequences in an Insert Values query. For details, see Query Designer Considerations for Oracle Databases.
For example, the following query adds a row to the titles
table, specifying values for the title, type, publisher, and price:
INSERT INTO titles
(title_id, title, type, pub_id, price)
VALUES ('BU9876', 'Creating Web Pages', 'business', '1389', '29.99')
For general information about using queries to update tables, see Modifying Data Using Queries.
When you create an Insert Values query, the Grid pane changes to reflect the only options available for inserting a new row: the column name and the value to insert.
Caution You cannot undo the action of executing an Insert Values query. As a precaution, back up your data before executing the query.
To create an Insert Values query
Note If more than one table is displayed in the Diagram pane when you start the Insert Values query, the Query Designer displays the Insert Values dialog box to prompt you for the name of the table to update.
Caution The Query Designer cannot check that a value fits within the length of the column you are inserting. If you provide a value that is too long, it might be truncated without warning. For example, if a name
column is 20 characters long but you specify an insert value of 25 characters, the last 5 characters might be truncated.
When you execute an Insert Values query, no results are reported in the Results pane. Instead, a message appears indicating how many rows were changed.