I want 2 insert null value in numeric column if it is blank
i have us foll code bt it is giving me err:
vDr["Drg_Days"] = (txtDrgDays.Text==""?null:txtDrgDays.Text);
How to insert null value in numeric column of Sql table using insert querry in C#.net(Window appl)
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Mamta MRank #268 · 9.4K reputationPosted Jan 14, 2011, 1:02 AM EST
Dorababu MekaRank #457 · 5.5K reputationPosted Jan 14, 2011, 1:06 AM EST
INSERT INTO "table_name" ("column1", "column2", ...)
VALUES ("value1", "value2", NULL,...)
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Jan 14, 2011, 3:08 AM EST
But i want 2 insert null value in numeric column table when it has blank value or null value.
Thnk u for reply