用 orcalceparameter 来做。Oracle 允许对 OracleParameter 绑定数组参数。
stringbuilder strb=new stringbuilder();
strb.append("insert into table (col1,col2) ");
foreach(var item in dic)
{
strb.Append(" select+"item.Key", '"+item.Value+"' from dual union");
}
string str=strp.TrimEnd("union".ToCharArrary());