Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个包中有一个函数,它返回一个用户定义的记录。
记录如下:
type MyRecord is record ( id varchar(15), start_date date );
我想在 sql 查询中调用我的函数。我试过这个:
select id, start_date from (select mypackage.myfunc() from dual);
但它不起作用。主要问题是如何从简单的 sql 查询中调用存储函数。任何的想法?
我想我找到了答案:
select * from table(mypackage.myfunc());