C#写的Sql存储过程里面使用 SqlPipe send 的方法实现的。
SqlPipe sp = SqlContext.Pipe;
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.Connection = conn;
cmd.CommandText = "Select * from TestTable1 order by id desc ";
SqlDataReader rdr = cmd.ExecuteReader();
sp.Send(rdr);
请问oracle里面是怎么实现的啊?
SqlPipe sp = SqlContext.Pipe;
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.Connection = conn;
cmd.CommandText = "Select * from TestTable1 order by id desc ";
SqlDataReader rdr = cmd.ExecuteReader();
sp.Send(rdr);
请问oracle里面是怎么实现的啊?
允许托管存储过程在 SQL Server 数据库上进行进程内运行,以便将结果返回调用方。无法继承此类。 命名空间:Microsoft.SqlServer.Server
程序集:System.Data(在 system.data.dll 中)在msdn里面没看到有对应的oracle的
oracle中的select不会返回结果集,需要改sql语句,要在存储过程中添加游标来返回结果集。