我在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
});
答案 0 :(得分:0)
Worklight提供了有关在此处创建SQL适配器的详细文档示例:
Worklight还提供了PPT附带的完整示例:
http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/WorklightAdaptersProject.zip