如果需要批量插入记录,可以使用SqlDataAdapter。示例

ASP.NET中批量插入数据   string sql= "Select item1,item2,item3 from tableA";
ASP.NET中批量插入数据   SqlConnection cn 
=new SqlConnection("server=(local);uid=sa;pwd=;database=examonline");
ASP.NET中批量插入数据   SqlDataAdapter da 
=new SqlDataAdapter(sql, cn);
ASP.NET中批量插入数据   DataSet ds
=new DataSet();
ASP.NET中批量插入数据   
try


相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-11-17
  • 2021-10-06
  • 2022-02-28
  • 2021-05-30
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
相关资源
相似解决方案