DEFAULT Constraint In SQL Server 2008

In this article I am going to explain about DEFAULT Constraint in SQL.
  • 2095


 With the help of default constraint we can insert a default value into a column.

The default value itself will be added to all new records, if  there is no other value specified.


Suppose we create table named  Persons and the column names are: P_ID, LAST NAME, FIRST NAME,ADDRESS AND CITY. So here, the P_ID and the LASTNAME will have the NOT NULL values.


© 2020 DotNetHeaven. All rights reserved.