declare result varchar2(30);
BEGIN
result:=WEBUSER.F_UpdateParticipant(json input_goes here);
dbms_output.put_line(result);
END;
and get the return value shown in dbms_output.{"Success":true}
or
{"Success":false}
But I cannot get the output returned to Petapoco. I've also tried using output params like this:var result = new Oracle.ManagedDataAccess.Client.OracleParameter("result",Oracle.ManagedDataAccess.Client.OracleDbType.Varchar2, System.Data.ParameterDirection.Output);
var sql = "DECLARE result VARCHAR2(30);" +
"BEGIN "+
" @0:=WEBUSER.F_UpdateParticipant(@1);" +
"END;";
_db.db.Execute(sql, result, json);
res = result.ToString();
AND var result = new Oracle.ManagedDataAccess.Client.OracleParameter("result",Oracle.ManagedDataAccess.Client.OracleDbType.Varchar2, System.Data.ParameterDirection.Output);
var sql = "DECLARE result VARCHAR2(30);" +
"BEGIN "+
" @result:=WEBUSER.F_UpdateParticipant(@1);" +
"END;";
_db.db.Execute(sql, result, json);
res = result.ToString();
Yes, used both Execute and ExecuteScalar with same results. Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.