Jump to content

Which insert is better?


The Little Guy

Recommended Posts

When you don't specify the column names where the data will be inserted you should be inserting into all the columns:

INSERT INTO table_name VALUES (value1, value2, value3,...)

 

If your going to specify the column names use this form:

INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)

 

The last form is good when your not inserting into all columns, but also works as a replacement for the first form.

 

 

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.