2013-01-23 42 views
0

我試圖運行一個procedure如果PKnull然後insert variables。我執行了procedure並沒有收到錯誤,但是當我去看看table它仍然是空的。下面是我的代碼有:執行程序不插入行

declare 
    type tempcursor is ref cursor; 
    v_cur_result tempcursor; 
    errcode number; 
    errmesg varchar2(1000); 
begin 
    ct_cu_act_um_pg.spt_save_casedetail 
    (null, 8172923, 'SRVCTYPE_CARDPULREHB', systimestamp, 23861881, systimestamp, 
    systimestamp, 'CASESTS_COMPL', 'CASESTSCAT_CLSD', 
    23778805, 'SRCSRVC_URGNT', 'RESOLS_TRMNTREND', 23778805, 'SRVCDESC_BEDTOIL', 'Y', 'ADAM WAS HERE', 23778805, 'PLCSRVC_OTH', 'N', 
    'ADAM', v_cur_result, errcode, errmesg); 
end; 

該規範是下面:

procedure spt_save_casedetail (
p_casedetailid_in    in casedetail.casedetailid%type, 
p_primarymemberplanid_in  in casedetail.primarymemberplanid%type, 
p_servicetypecd_in   in casedetail.servicetypecd%type, 
p_notifydt_in     in casedetail.notifydt%type, 
p_assignedentityid_in   in casedetail.assignedentityid%type, 
p_startdt_in     in casedetail.startdt%type, 
p_enddt_in     in casedetail.enddt%type, 
p_casetypemnemonic_in   in casedetail.casetypemnemonic%type, 
p_casestatusmnemonic_in  in casedetail.casestatusmnemonic%type, 
p_odsorderingproviderid_in in casedetail.odsorderingproviderid%type, 
p_sourcemnemonic_in   in casedetail.sourcemnemonic%type, 
p_caseresolutionmnemonic_in in casedetail.caseresolutionmnemonic%type, 
p_odsservicingproviderid_in in casedetail.odsservicingproviderid%type, 
p_serviceitemmnemonic_in  in casedetail.serviceitemmnemonic%type, 
p_providerinnetworkind_in  in casedetail.providerinnetworkind%type, 
p_detailtxt_in    in casedetail.detailtxt%type, 
p_odsfacilityvendorid_in  in casedetail.odsfacilityvendorid%type, 
p_servicelocationcd_in  in casedetail.servicelocationcd%type, 
p_facilityinnetworkind_in  in casedetail.facilityinnetworkind%type, 
p_audit_user_in    in casedetail.updatedby%type, 
p_return_cur_out    out sys_refcursor, 
p_err_code_out    out number, 
p_err_mesg_out    out varchar2); 

我說話的人,他們說了一些關於開放cursor但是我不知道到底怎麼做,那麼生病是看着它。無論如何向正確的方向微調讚賞,在此先感謝。

回答

1

沒關係我想通了,它沒有被插入,因爲無法找到服務類型cd。一旦我將它改爲不同的類型,它就被插入了。

+0

+1找到你自己的答案。 –