To add complete new rows of data to an existing table, use the INSERT statement and specify the values you want to add.
How It's Done without Column Names
Suppose the company sets up a new department, the Audit department, and you need to add this information to the DEPARTMENT table. To do this, enter:
insert into department
values (4040, 1234,'D09', 'Audit');
The statement above adds the row into the table with the other department information.
Things to Remember when Using INSERT
Using the Keyword NULL
If you do not have data available for a particular column, you can insert the keyword NULL as a place holder if the column has been defined to allow null values.
|
Copyright © 2014 CA.
All rights reserved.
|
|