我正在开发一个 asp+oracle web 项目,我需要一个多用户选择功能。
1、使用javascript建立一个字符串数组:
var userArray = ["Simon","Sheng","Cheng"];
2,通过ado参数对象传递它,但我不知道如何填充参数ojbect:
var cmd = Server.CreateObject("ADODB.Command");
var param = cmd.CreateParameter("par",????????????)<--I don't know how to fill;
3、在oracle中创建存储过程
create or replace package demo_pkg
as
type charArray is table of varchar2(255) index by binary_integer;
type t_cursor is ref cursor;
procedure p_test(p_id in charArray,p_cursor out t_cursor );
end;
create or replace package body demo_pkg
as
procedure p_test (p_id in charArray,p_cursor out t_cursor )
AS
v_cursor t_cursor;
BEGIN
open v_cursor for
select last_name from employees where last_name in (select * from table(cast(p_id as charArray)))
p_cursor := s_test;
end;
end;
谷歌3天后,我还在这里,谁能帮帮我?