[小白求教]c# System.Data.OracleClient 如何批量插入数据
本帖最后由 qq_16664871 于 2014-10-29 17:00:37 编辑
如题,听说可以用SQL拼接语句的方式,但是没找到。。。
ConnString = GetConnString();
OracleConnection connection = new OracleConnection(ConnString);
connection.Open();
string sql = "insert into \"CLIDB\" (ID_,DEVCODE,KKMC,CDMC,KKBH) values (auto_ID.nextval,:DEVCODE,:KKMC,:CDMC,:KKBH)";
String sqlinsert = sql;
OracleCommand oracleCommand = getoracleCommand(sqlinsert, connection);
OracleParameter[] para =
{
new OracleParameter ("DEVCODE", OracleType.VarChar,125),
new OracleParameter (":KKMC", OracleType.VarChar ,255),
new OracleParameter ("CDMC", OracleType.VarChar,255),
new OracleParameter ("KKBH", OracleType.VarChar,20),
new OracleParameter ("FXLX", OracleTyp