Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Oracle Packages: Is there a way to...
Hello and Thank you...
What I would like to do is setup a generic package. Is there a way to do this, and am I going in the right direction?
Is there a way to test for boolean in an IF statement as written below...(o_active := IF( ISNULL(row.end_dt), "Y", "N");)
( o_id OUT t_id
, o_desc OUT t_desc
, o_active OUT t_boolean
, o_end_dt OUT t_date
, o_srt_seq_num OUT t_srt_seq_num
, o_last_maint_dt OUT t_date
, o_last_maint_user_id OUT t_lupd_user
) IS CURSOR tbl_cur IS SELECT id , desc , end_dt , num , dte , user_id FROM table_xyz BEGIN FOR row IN tbl_cur LOOP o_id(i) := row.pymt_meth_id; o_desc(i) := row.pymt_meth_desc; o_active(i) := IF( ISNULL(row.end_dt), "Y", "N"); o_dte(i) := row.dte; o_num(i) := row.num; o_dte(i):= row.last_maint_dt; o_user_id(i):= row.user_id; i := i + 1; END LOOP;
![]() |
![]() |