datatable插入数据库
摘要:
使用sqlcommand.executenonquery()方法插入foreach (DataRow datarow in datatable.Rows){string sql = "INSERT INTO [Table_1]([CompanyName],[CompanyCode],[Address],[Owner],[Memo])" +"VALUES('" + datarow["CompanyN... 阅读全文
posted @ 2010-05-19 12:55 项羽 阅读(1732) 评论(0) 推荐(1) 编辑