行式引擎报错

已开启行式引擎

image.png

分页sql如下

SELECT * FROM (SELECT *       FROM ( select burks_id, burks_name, piv_hyk_no, psl_pro_id, psl_pro_name, zgg, zsccj, dl_name, zl_name, xl_name, month1, month2, month3, month4, month5, month6, month7, month8, month9, month10, month11, month12,'${p_month}' p_month,        month1+month2+month3+month4+month5+month6+month7+month8+month9+month10+month11+month12 sumallmonth,        case when used_days = 0 then 0 else 30/used_days end monthusedqty,        case when used_days = 0 then 0 else 30/used_days end * to_number(right('${p_month}',2)) allusedqty,        gk_flag,        (month1+month2+month3+month4+month5+month6+month7+month8+month9+month10+month11+month12) -  (case when used_days = 0 then 0 else 30/used_days end * to_number(right('${p_month}',2))) dot,        case when maxpslmonth = '${p_month}' then '是' else '否' end isbuy,        case when gk_flag = '是' then '公卡'            when gk_flag = '否' then                case when (month1+month2+month3+month4+month5+month6+month7+month8+month9+month10+month11+month12) -  (case when used_days = 0 then 0 else 30/used_days end * to_number(right('${p_month}',2))) >=0                 and maxpslmonth = '${p_month}' then '优'                when (month1+month2+month3+month4+month5+month6+month7+month8+month9+month10+month11+month12) -  (case when used_days = 0 then 0 else 30/used_days end * to_number(right('${p_month}',2))) >=0                 and maxpslmonth != '${p_month}' then '高'                when (month1+month2+month3+month4+month5+month6+month7+month8+month9+month10+month11+month12) -  (case when used_days = 0 then 0 else 30/used_days end * to_number(right('${p_month}',2))) <0                 and maxpslmonth = '${p_month}' then '中'                when (month1+month2+month3+month4+month5+month6+month7+month8+month9+month10+month11+month12) -  (case when used_days = 0 then 0 else 30/used_days end * to_number(right('${p_month}',2))) <0                 and maxpslmonth != '${p_month}' then '低' end         end hybq,         to_number(right(left(trunc(sysdate()),7),2))-to_number(right(maxmonth,2)) deltmonth from (select p.burks_id,p.burks_name,p.piv_hyk_no,p.psl_pro_id,p.psl_pro_name,p.zgg,p.zsccj,p.dl_name,p.dl_id,p.zl_name,p.zl_id,p.xl_name,p.xl_id,p.gk_flag,nvl(p.used_days,0) used_days,max(p.last_buy_month) maxmonth,max(p.psl_month) maxpslmonth,        sum(case when right(p.psl_month,2) = '01' then p.psl_qty else 0 end) month1,        sum(case when right(p.psl_month,2) = '02' then p.psl_qty else 0 end) month2,        sum(case when right(p.psl_month,2) = '03' then p.psl_qty else 0 end) month3,        sum(case when right(p.psl_month,2) = '04' then p.psl_qty else 0 end) month4,        sum(case when right(p.psl_month,2) = '05' then p.psl_qty else 0 end) month5,        sum(case when right(p.psl_month,2) = '06' then p.psl_qty else 0 end) month6,        sum(case when right(p.psl_month,2) = '07' then p.psl_qty else 0 end) month7,        sum(case when right(p.psl_month,2) = '08' then p.psl_qty else 0 end) month8,        sum(case when right(p.psl_month,2) = '09' then p.psl_qty else 0 end) month9,        sum(case when right(p.psl_month,2) = '10' then p.psl_qty else 0 end) month10,        sum(case when right(p.psl_month,2) = '11' then p.psl_qty else 0 end) month11,        sum(case when right(p.psl_month,2) = '12' then p.psl_qty else 0 end) month12 from dm_rh.dm_hy_sku_dot_sale p group by p.burks_id,p.burks_name,p.piv_hyk_no,p.psl_pro_id,p.psl_pro_name,p.zgg,p.zsccj,p.dl_name,p.zl_name,p.xl_name,p.gk_flag,p.used_days,p.dl_id,p.zl_id,p.xl_id) a1 order by (burks_id,burks_name,piv_hyk_no,psl_pro_id) ASC             limit ${fr_pagesize*fr_pagenumber}) AS e1       ORDER BY (e1.burks_id,e1.burks_name,e1.piv_hyk_no,e1.psl_pro_id) DESC       limit ${if(fr_pagenumber == int((((fr_rowcount-1)/fr_pagesize)+1)),fr_rowcount - (fr_pagesize*(fr_pagenumber-1)),fr_pagesize)}) AS e2 ORDER BY (e2.burks_id,e2.burks_name,e2.piv_hyk_no,e2.psl_pro_id) ASC

报错如下

image.png

image.png

FineReport yzm287172 发布于 2024-5-16 11:52
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
用户k6280494Lv6专家互助
发布于2024-5-16 11:57
  • yzm287172 yzm287172(提问者) 已看,并且已实现简单表的行式引擎,是不是因为sql太复杂所以不行?
    2024-05-16 14:17 
  • 用户k6280494 用户k6280494 回复 yzm287172(提问者) 看使用限制
    2024-05-16 14:19 
  • yzm287172 yzm287172(提问者) 回复 用户k6280494 感谢感谢,刚才仔细看了使用限制,发现因为我用了 条件属性设置列宽
    2024-05-16 14:25 
  • 2关注人数
  • 186浏览人数
  • 最后回答于:2024-5-16 11:57
    请选择关闭问题的原因
    确定 取消
    返回顶部