Sign-up....

在oracle存储过程中,怎样才能返回一数据集呢

在oracle存储过程中,经过复杂计算后,产生大量数据,我怎样才能返回这一数据集呢?

[45 byte] By [msdn] at [2007-8-14 15:30:56]
# 1 Re: 在oracle存储过程中,怎样才能返回一数据集呢

返回数据集是什么意思?

可以把数据放到表里或者保存到文件中!

sos_help at 2005-3-2 8:10:37 >
# 2 Re: 在oracle存储过程中,怎样才能返回一数据集呢

可以使用ref cursor.以前有很多相关的问题了.你搜一下吧.

dinya2003 at 2005-3-2 8:26:14 >
# 3 Re: 在oracle存储过程中,怎样才能返回一数据集呢

DELPHI 调用 Oracle 存储过程并返回数据集的例子.

http://blog.csdn.net/chanet/archive/2005/01/19/259409.aspx

vb 调用 Oracle 函数返回数据集的例子

http://blog.csdn.net/chanet/archive/2005/01/19/259391.aspx

chanet at 2005-3-2 8:29:24 >
# 4 Re: 在oracle存储过程中,怎样才能返回一数据集呢

楼上的正确

GerryYang at 2005-3-2 8:46:50 >
# 5 Re: 在oracle存储过程中,怎样才能返回一数据集呢

oracle返回数据集真麻烦.

大家不要砸我.

xxc1981 at 2005-3-2 17:49:20 >
# 6 Re: 在oracle存储过程中,怎样才能返回一数据集呢

1.定义一个输出变量

rcResult out PK_Var.RC

2.打开这个记录集

OPEN rcResult FOR sSQL;

andy77 at 2005-3-2 17:53:28 >
# 7 Re: 在oracle存储过程中,怎样才能返回一数据集呢

我也使用ref cursor

fuxia at 2005-3-2 17:55:47 >

Oracle

All Classified