利用函数返回oracle对象表的三种方法
发布时间:2020-12-12 17:03:52 所属栏目:百科 来源:网络整理
导读:因为要返回表对象,无论后续用什么方法返回,都先要声明全局type;并且,字段变量类型要为object,不能为record: create or replace type t_test_table as table of t_test; 至于返回表对象的方法,目前发现三种: 1、用数组 2、用pipe 这两种都需要用游标
因为要返回表对象,无论后续用什么方法返回,都先要声明全局type;并且,字段变量类型要为object,不能为record: 至于返回表对象的方法,目前发现三种: 1、用数组
|