Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do I've to type all columns in INSERT statement

Status
Not open for further replies.

sarah77

Programmer
Joined
Jun 4, 2002
Messages
36
Location
US
Hi,

If I've a table consist of 30 columns do I've to mention all columns within INSERT statement or SQL server will assigne the default value to the left columns.

Thnaks
 
Generally you do not have to include all columns in an insert statement, because columns that are set to accept nulls or have defaults will be ok ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top