小编Nel*_*SMG的帖子

Oracle - 'Expression is of wrong type' 返回包中记录类型表

尝试测试在返回记录类型表的包中定义的函数时,我收到“表达式类型错误”。
这是标题:

create or replace package pck_prestamos is
type r_cuotas is record
    (saldo_capital number(12),
    amortizacion number(12),
    interes number(12),
    seguro_vida number(8),
    monto_cuota number(15),
    fecha_vencimiento date);
type t_cuotas is table of r_cuotas
    index by binary_integer;
--v_cuotas t_cuotas;
function f_calcular_cuotas(monto_p number,t_i_a number, plazo_p number, fecha_d date) return t_cuotas;
end;
/
Run Code Online (Sandbox Code Playgroud)

这是身体:

create or replace package body pck_prestamos is
function f_calcular_cuotas(monto_p number,t_i_a number, plazo_p number, fecha_d date) return t_cuotas is
    saldo_capital_ant number;
    amortizacion_capital_ant number;
    diferencia number;
    porc_seg_v gen_parametros.porc_seg_vida%type;
    v_cuotasf t_cuotas;
begin
    select porc_seg_vida into …
Run Code Online (Sandbox Code Playgroud)

oracle types function package

1
推荐指数
1
解决办法
172
查看次数

标签 统计

function ×1

oracle ×1

package ×1

types ×1