第一次做前台,求救!拜托了!
我的Oracle程序如下:
type p_cursor is ref cursor;'自定义光标
Create or Replace Pocedure test( target_ID in varchar2,target_date in date,
result_Cursor out p_cursor
)
as
begin
open result_Cursor for
/*查询结果集*/
end test;
VB程序如下
private function test() as ADODB.Recordset
dim cnn as ADODB.connection
dim com as ADODB.command
Dim rs as ADODB.recordset
if cnn.open=adstateopen then cnn.close
end if;'如果数据源打开则关闭
with cnn'建立连接
.connectionstrin="..."
.open
end with
with com '初始化参数
.refresh
.ActiveConnection=cnn
.CommandType=AdStorePro
.CommandText="test.test(?)"
.parameter(0)="s345fvfve345"'为第一个变量赋值
.parameter(1)=cdate("2001-7-7")
end with
set rs=com.execute'执行并返回数据集合
test = rs'为函数赋值
end function
各位大哥我想请问的是我的这个程序怎么就运行不起来呢