简体   繁体   中英

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.

只需将要“空白”的任何值设置为DBNull.Value ,即“代表不存在的值”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM