【问题标题】:Executed procedure not inserting row执行的过程不插入行
【发布时间】:2013-01-23 17:27:41
【问题描述】:

我正在尝试运行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 的事情,但我不确定该怎么做,所以我正在研究它。无论如何,任何朝着正确方向的推动都将受到赞赏,在此先感谢。

【问题讨论】:

    标签: oracle error-handling plsql procedure


    【解决方案1】:

    没关系,我想通了,它没有被插入,因为找不到服务类型 cd。一旦我将它更改为不同的类型,它就会被插入。

    【讨论】:

      猜你喜欢
      • 2017-10-18
      • 2019-05-10
      • 2021-04-01
      • 2014-07-09
      • 2019-03-19
      • 1970-01-01
      • 2023-04-05
      • 1970-01-01
      • 2014-09-11
      相关资源
      最近更新 更多