Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / database / SQL-Server

Insert default value[s] in a table

4.25/5 (5 votes)
29 Dec 2009CPOL 7.2K  
I was facing the problem of inserting a default value on single column table and I have achieved via this way.insert into > default valuesAlso this could be used for many columns in a table defining with default constraints.ThanksMehul Thakkar
I was facing the problem of inserting a default value on single column table and I have achieved via this way.

insert into <<tablename>> default values

Also this could be used for many columns in a table defining with default constraints.

Thanks

Mehul Thakkar

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)