开发者

inserting blank row/cell from datatable into database in C#.NET

I am reading data table and trying to insert开发者_高级运维 into database. Now, I have few rows/cell whose is null or empty.

I want to insert those row properly into database.

Can anyone help me out or provide me simple program.

Thanks, Rushabh Shah.


Just set any value you want to be "blank" to DBNull.Value, which "Represents a nonexistent value".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜