OracleConnection con=new OracleConnection(strcon);
OracleCommand cmd=new OracleCommand();
OracleTransaction mytrans ;
try
{
con
mytrans =con
cmd
cmd
cmd
cmd
OracleParameter parameter_in=new OracleParameter(
OracleParameter parameter_out=new OracleParameter (
parameter_in
parameter_out
parameter_in
cmd
cmd
cmd
mytrans
return int
}
catch(Exception er)
{
throw new Exception(er
mytrans
}
finally
{
cmd
con
}
From:http://tw.wingwit.com/Article/program/ASP/201311/21778.html