dear experts
can i use laxical paramter within my procedure
select '' employee_no, ptdv.fiscal_year, ptdv.trans_month, ptdv.location_code, ptdv.acc_code,ptdv.acc_desc,sum(ptdv.EARNING)-sum(ptdv.DEDUCTION) debit,0 credit,1 tag
from pr_trans_dtl_v ptdv
where ptdv.trans_month=nvl(mtrans_month, ptdv.trans_month)
and ptdv.location_code=nvl(mloc_code, ptdv.location_code)
and ptdv.fiscal_year=mfiscal_year
and ptdv.ACC_TYPE='A'
and ptdv.trans_type_row in ('R','A')
and ptdv.acc_code NOT IN ( 525050,525100,525101,520500,525300,525320,560800,525360,525310,525350,130150, 802044)
group by ptdv.fiscal_year, ptdv.trans_month, ptdv.location_code,ptdv.acc_code,ptdv.acc_desc
see the highlighted row
can i use
and ptdv.trans_type_row in &vtype
instead of
and ptdv.trans_type_row in ('R','A')
where the vtype is varchar2(100) and
vtype:='(''R'',''A'')';
regards
anwer
[EDITED by LF: fixed topic title typo; was "laxical"]
[Updated on: Mon, 04 June 2012 03:24] by Moderator
Report message to a moderator