mule 4 calling stored procedure with userdefined data type

狂风中的少年 提交于 2019-12-11 16:12:36

问题


I need to insert userdefined data type through stored procedure.


 create type addressTypes as object
   (Street  VARCHAR2(50),
     City    VARCHAR2(25),
     State   VARCHAR2(25),
     Zip     VARCHAR2(25));
    /

create table custom (
      cid  NUMBER,
      address       addressTypes
  );



Create or replace PROCEDURE demooo
   (
     Cid IN VARCHAR2,
    address IN  addressTypes,
     RESULT_CODE OUT VARCHAR2,
     RESULT_DESC OUT VARCHAR2
    ) AS
    BEGIN
    INSERT INTO custom VALUES (Cid,address.Street,address.City,address.State,address.Zip);
     RESULT_CODE:='0';
     RESULT_DESC:='SUCCESS';
     EXCEPTION WHEN  OTHERS THEN
     RESULT_CODE:='-1';
     RESULT_DESC:='FAILED';
   END demoo;
   /

Please give me any example to do this.

来源:https://stackoverflow.com/questions/57494941/mule-4-calling-stored-procedure-with-userdefined-data-type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!