问题
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