I have two table tblPerson and tblGender
the coulmn 'GenderID'in tblPerson is a foriegn key for the coulmn 'ID'(primary) in the tblGender
here is a default contarint
Alter Table tblPerson
Add constraint DF_tblPerson_GenderID
Default 4 for GENDERID
now the insert query is
insert into tblPerson (ID,[Name],EmailID,GenderID)values
(4,'Riya','riya@.com',2),
(5,'Raj','raj@.com',3),
(6,'Tisha','tisha@.com',2),
(7,'Stephen','stephen@.com'); // here im getting the error
now as you can see in the 7 I'm trying to add nothing in the genderid column and i thought it will be considered as a default constraint
but it is giving me error 'The number of columns for each row in a table value constructor must be the same.'