0
任何人都可以解釋我爲什麼我得到無效的標識符錯誤,爲什麼不能變量z.cupu可達?到達變量通過PLSQL連接
ORA-00904: "Z"."CUPU": invalid identifier
select
(select listagg(text, ', ') within group (order by kod)
from cis_chyby_pu_na_uss
where kod in (
select
regexp_substr(t.stav_full, '[^,]+', 1, l.lev) split
from PREKLAPANIE_PU_NA_USS_HIST t, (select rownum as lev
from dual
connect by level <= length (trim(regexp_replace((select stav_full
from PREKLAPANIE_PU_NA_USS_HIST h
where z.cupu = h.cislo_pu)
------------------------------------------------------------------------------------------------------------------^
, '[^,]+')))
) l
where t.cislo_pu = z.cupu
and z.stav <> 100)
)
from zz_2202 z
在你的問題中沒有PL/SQL – 2014-11-01 12:35:34