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','[email protected]',2),
(5,'Raj','[email protected]',3),
(6,'Tisha','[email protected]',2),
(7,'Stephen','[email protected]'); // 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.'