ExecuteNonQuery
public static int ExecuteNonQuery(CommandType cmdType, string cmdText)
{
int num2;
OracleConnection conn = null;
try
{
conn = OpenConn();
num2 = ExecuteNonQuery(conn, null, cmdType, cmdText, null);
}
catch (Exception exception)
{
throw exception;
}
finally
{
if ((conn != null) && (conn.State == ConnectionState.Open))
{
conn.Close();
}
}
return num2;
}
------解决方案--------------------
你想问什么,就贴个代码什么也不说,这段代码是对数据库进行非查询操作(添删改),定义了num2来存放成功执行受影响的行数,