以下代碼執行該過程
// create connection
OracleConnection conn = new OracleConnection(
User Id=UserID;Password=Password;
// create the command for the stored procedure
OracleCommand cmd = new OracleCommand();
cmd
cmd
cmd
// add the parameters for the stored procedure including the REF CURSOR
// to retrieve the result set
cmd
cmd
ParameterDirection
// open the connection and create the DataReader
conn
OracleDataReader dr = cmd
// output the results and close the connection
while(dr
{
for(int i =
Console
Console
}
conn
[
From:http://tw.wingwit.com/Article/program/net/201311/15010.html