- Apr 24, 2005
- 553
- 4
- 81
Hey guys,
In SQL Server there are 2 ways to do an INSERT: by listing column names, or by ommiting them:
INSERT INTO Table1 (Column1, Column2, Column3?)
VALUES (Value1, Value2, Value3?)
vs
INSERT INTO Table1
VALUES (value1, value2, value3?)
Which one is better? I am more concerned with readability, reliability, and ease of maintenance than performance.
Thank you!
In SQL Server there are 2 ways to do an INSERT: by listing column names, or by ommiting them:
INSERT INTO Table1 (Column1, Column2, Column3?)
VALUES (Value1, Value2, Value3?)
vs
INSERT INTO Table1
VALUES (value1, value2, value3?)
Which one is better? I am more concerned with readability, reliability, and ease of maintenance than performance.
Thank you!