如何使用Custom IN Parameter在IBM worklight SQL Adapter中调用存储过程

时间:2014-04-08 13:39:44

标签: ibm-mobilefirst worklight-adapters

我在Oracle数据库中使用以下内容:

CREATE OR REPLACE
type PARAM_ARRAY as table of VARCHAR2 (4000);

Procedure created in Oracle using custom type

CREATE OR REPLACE

PROCEDURE REGISTERUSER(p_array in PARAM_ARRAY)
AS
BEGIN

dbms_output.put_line( p_array(1));

END REGISTERUSER;

如何在SQL适配器中正确编写以下过程?

var mycars = new Array();
    mycars[0] = "Saab";
    mycars[1] = "Volvo";
    mycars[2] = "BMW";

    var result =  WL.Server.invokeSQLStoredProcedure({
        procedure : "RegisterUser",
        parameters :mycars
    });

1 个答案:

答案 0 :(得分:0)