oracle - 执行的过程未插入行

标签 oracle error-handling plsql procedure

我试图运行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的事情,但是我不确定确切如何执行此操作,因此请仔细研究。无论如何,感谢朝着正确方向前进的任何人,在此先感谢。

最佳答案

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

关于oracle - 执行的过程未插入行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14485695/

相关文章:

sql - 我可以强制此 Oracle 窗口查询返回单行值吗?

sql - 有效地选择数据sql

oracle - PLS-00103 : Encountered the symbol "END" when expecting one of the fo llowing

error-handling - 如果不使用返回值, `unwrap()` 的用途是什么?

r - 所有连接都在使用中 : Execution halted

c# - 在 C# 中的单个 Oracle 命令中执行多个查询

oracle设置多个系统变量

android - AdMob 错误 "you must have adactivity declared in androidmanifest.xml with configchanges"

java - 如何使用 procedure 来终止从 java 代码调用它的作业?

sql - 在 PL/SQL 存储过程中返回自定义类型