如何在Oracle中取得,用java写的存储过程返回的数组

creationbj 2003-10-20 07:17:09
1>public class Generator{
public class Generator(){}
public String[] Generate(int length,int bundle){}
}

2>loadjava -v -u mcc/mcc@oradblinux Generator.class

3>CREATE FUNCTION generator_generate(leng number,bundle number) RETURN VARCHAR2[]---Error 数组标示有误
AS LANGUAGE JAVA
NAME 'Generator.Generate(int,int) return java.lang.String[]';

4〉在线等待
...全文
50 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
creationbj 2003-10-21
  • 打赏
  • 举报
回复
我刚刚使Java编写存储过程,
我本想取得该过程返回String[]数组,
但无法在Oracle 中找到对应的数据类型。
我就重写该过程,
能认识你很高兴
十分感谢
LGQDUCKY 2003-10-21
  • 打赏
  • 举报
回复
是过程吗?
CREATE OR REPLACE PACKAGE pkg_test
AS
TYPE myrctype IS REF CURSOR;
END pkg_test;
/

create procedure pro(c out pkg_test.myrctype)
as
str varchar2(200);
begin
str:='select * from table.....'
open c for str;
end;
/

3,492

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧