加载中...

Databases

  1. Home
  2. Computing & Technology
  3. Databases

Inserting Data with the SQL INSERT Command

By Mike Chapple, About.com

The INSERT command in SQL is used to add records to an existing table. Imagine that our HR department needs to add a new employee to their database. They could use a command similar to the one shown below:
INSERT INTO personal_info
values('bart','simpson',12345,$45000)
Note that there are four values specified for the record. These correspond to the table attributes in the order they were defined: first_name, last_name, employee_id, and salary.

Explore Databases

More from About.com

New Year, New You

Take action today to accomplish your biggest goals with these motivating ideas.

Best Moves in a Bad Economy

Stay on top in this tough economy with our smart, easy-to-follow financial tips.

Databases

  1. Home
  2. Computing & Technology
  3. Databases
  4. Learning SQL
  5. Inserting Data with the SQL INSERT Command

©2009 About.com, a part of The New York Times Company.

All rights reserved.