關於c 呼叫oracle儲存過程返回資料集的寫法

2021-04-18 15:11:57 字數 578 閱讀 3134

create or replace package body report.clinic_rate

asprocedure clinic_master

( start_date date,

end_date date,

i number,

t_rate  out t_cursor)is

begin

open t_rate for

select  counts,count(*) as counts_number  from

(select patient_id,count(patient_id) as counts from clinic_master  where visit_date>=start_date and visit_date<=end_date group by patient_id

) agroup by counts

order by counts;

end clinic_master;

end clinic_rate;

/c#呼叫

private

void data_load1()

C 呼叫oracle儲存過程

建立oracle過程儲存 create or replace procedure proce test paramin in varchar2,paramout out varchar2,paraminout in out varchar2 asvarparam varchar2 28 begin ...

c 呼叫oracle儲存過程

create or replace package pkg tabletype is type tabletype is ref cursor procedure sp cpzd cpno in varchar2,status in varchar2,t sql out tabletype end ...

C 呼叫oracle儲存過程

c 呼叫oracle儲存過程 oracle方面 建立oracle過程儲存 create or replace procedure proce test paramin in varchar2,paramout out varchar2,paraminout in out varchar2 asvar...