我正在Oracle Reports Builder中处理报表,AFTERPFORM触发器出现问题。查看报告时,似乎正在正确处理年份,而期间和子期间使用其初始值。我之所以感到困惑,是因为它们是完全相同的select语句,但却不能按预期工作。任何帮助都将不胜感激!
function AfterPForm return boolean is
v_subpdenddt_user date;
v_subpdenddt_max date;
v_rowcount integer;
begin
select value into year from wos_report_param where parameter = 'year' and sequence_num = :sequencenum;
select value into period from wos_report_param where parameter = 'period' and sequence_num = :sequencenum;
select value into user_subpd from wos_report_param where parameter = 'subpd' and sequence_num = :sequencenum;发布于 2014-03-20 12:38:52
您必须检查变量数据类型是否与数据库列匹配?
尝试更改上面的代码以使用varchar2变量,如果您想处理日期,则将varchar2转换为date,如果您想处理数字,则将其转换为数字。
https://stackoverflow.com/questions/12149926
复制相似问题