2024-09-30 06:00:47
2024-09-30 08:50:07
2024-09-30 10:16:55
OracleConnection myconn = new OracleConnection();
myconn.ConnectionString = "Data Source=XXXX;User Id=XXX;Password=XXXXX;";
myconn.Open();
OracleCommand cmd = myconn.CreateCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "存储过程的名称";
cmd.Parameters.Add("Cursor类型参数的名称", OracleType.Cursor).Direction = ParameterDirection.Output;
OracleDataAdapter DataAdapter = new OracleDataAdapter(cmd);
DataTable dt = new DataTable();
DataAdapter.Fill(dt);
myconn.Close();
2024-09-30 04:22:26