我收到错误:06550。00000 - “行 %s,列 %s: %s" *原因:通常是 PL/SQL 编译错误

问题描述 投票:0回答:0

我是甲骨文的新手。我有三张桌子。我想从 join tbl_ledger , tbl_ledger_input 插入表 tbl_ledger_branch 我的代码是:

BEGIN


for  i  in  min(a.eff_date ).. max(a.eff_date) LOOP

insert  into   tbl_ledger_branch (ledger_code , name , depth , parent_code , balance , ref_cur_id , eff_date , ref_branch , cur_balance , number_date ) 

select  a.ledger_code , max( b.name ) name , max(b.depth)  depth  , 

max(CONCAT(SUBSTR(b.LEDGER_CODE,1,9),'00')) PARENT_CODE , sum(a.balance) balance,

i  eff_date, a.ref_branch , a.cur_balance   

from   tbl_ledger_input  a  inner join  tbl_ledger b 

on   a.ledger_code = b.ledger_code

where  eff_date <= i 

group by  a.ref_branch ,a.ref_cur_id ,a.ledger_code  , a.cur_balance


END LOOP ;

END ;

但我得到错误:

06550. 00000 -  "line %s, column %s:\n%s"
*Cause:    Usually a PL/SQL compilation error.

请帮助我。

oracle plsqldeveloper
© www.soinside.com 2019 - 2024. All rights reserved.