我的 Oracle Report Builder 中有一个参数 (parameter_in),我在此报告中的以下查询中使用此参数,但结果未出现。我的名称参数是 (mhn.kod_urusan IN (replace(:p_kod_urusan,'[^,]+',',') ) 或 :p_kod_urusan 为空) 这是我的查询:-
select distinct to_char(mhn.trh_masuk,'dd/mm/yyyy') trh_masuk,
p.nama nama,mhn.kod_urusan
from mohon mhn,mohon_hakmilik mh, pemohon pm, pihak p,
hakmilik h,
kod_daerah kd,kod_bpm kb
where
mhn.id_mohon = mh.id_mohon
and mhn.id_mohon = pm.id_mohon
and pm.id_pihak = p.id_pihak(+)
and mh.id_hakmilik = h.id_hakmilik
and h.kod_daerah = kd.kod(+)
and (upper(TRUNC(mhn.trh_masuk)) BETWEEN :p_date1 AND :p_date2 )
and (mhn.kod_urusan IN (replace(:p_kod_urusan,'[^,]+',',') ) or :p_kod_urusan is null)
order by 1 asc
有人知道吗?.:(:(