CREATE OR REPLACE PROCEDURE aaaaaaaaaaaaaaa(cur1 out sys_refcursor)
IS
begin
open cur1 for select secuser.logid,secuser.u_name,secuser.firstname from secuser;
end;像这个我在C#里面怎么调用呢?? sys_refcursor C#怎么接收的啊??
IS
begin
open cur1 for select secuser.logid,secuser.u_name,secuser.firstname from secuser;
end;像这个我在C#里面怎么调用呢?? sys_refcursor C#怎么接收的啊??
command = new OracleCommand(“存储过程的名称”)
通过OracleParameter给command付参数
例如:
输入的参数(in参数)
param = New OracleParameter(参数名称, 参数类型)
param.Direction = ParameterDirection.Input
param.Value=参数的值
command.Parameters.Add(param)
输出参数(out参数)
param = New OracleParameter(参数名称, 参数类型)
param.Direction = ParameterDirection.Output
param.Value=参数的值
command.Parameters.Add(param)
ret = command.ExecuteNonQuery()
取得可用
out = command.Parameters.Item("cur1").Value.toString()
在定义dataset或者datatable
好像是这样 都忘光了