About this question
I am trying to create a new table with columns followed by their constraint as shown below. Create tblTest( columns.. .. .. Gender int, Constraint DF_tblTest_Gender Default 3 For Gender, .. .. .. )
However, I am getting an error message near the default constraint as, 'Incorrect syntax near 'for'' What are SQL Server constraints?