hello friends please solve this query
i have one table like: category
and there field like:
Category_Id int,
Category_Name varchar(50),
cat_IsSizeRequired bit
and cat_IsSizeRequired this column default value set ((0))
and than
insert time my query like
Category_Id int,
@Category_Name varchar(250),
@cat_IsSizeRequired bit
insert into dbo.Tbl_Category(Category_Name,cat_IsSizeRequired) values(@Category_Name,@cat_IsSizeRequired)
this and i want when insert
query
if i check cat_IsSizeRequired is true it insert true else default value false please any body tell me
sorry for my bad English


Ravi PatelRank #439 · 5.7K reputationPosted Jul 6, 2016, 10:28 PM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Jul 6, 2016, 10:38 PM EDT
Devendra KumarRank #3,132 · 457 reputationPosted Jul 6, 2016, 10:47 PM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Jul 6, 2016, 10:50 PM EDT
Devendra KumarRank #3,132 · 457 reputationPosted Jul 6, 2016, 10:54 PM EDT
Ravi PatelRank #439 · 5.7K reputationPosted Jul 6, 2016, 10:57 PM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Jul 6, 2016, 11:06 PM EDT