数组保存到数据库sql?先谢谢啦!
数组a[i]   b[i],怎样把数组中的值保存到数据库的相应表中?怎样用for循环把所有的值都依次存进去。大家帮帮忙,最好给点代码例子,开发环境是VS   C#.net 
 谢谢啦!
------解决方案--------------------for(int i=0;i <a.count;i++) 
 循环插入呀 
------解决方案--------------------Insertcmd= "insert into table ( , ) values ( " + a[i] +  ", " + b[i] +  ") "
------解决方案--------------------for(int i=0;i <a.count;i++) 
 { 
    Insertcmd= "insert into table (,) values ( ' "+a[i]+ " ', ' "+b[i]+ " ') "; 
    //执行Insertcmd语句 
 }