Hello
Need your kind support to solve the below issue
I am returning oracle column value via sqlplus in the below code
my $sqlplus_settings = '';
my $newval = qx { sqlplus -s $connect_string <<EOF
set pages 0 feed off
$sqlplus_settings select (rcrd_cnt) from rptg.r_sb_stg_data_fl_acq_cyc_cntl where data_acq_cyc_cntl_id = (select max(data_acq_cyc_cntl_id) from rptg.r_sb_stg_data_fl_acq_cyc_cntl where srce_id=1 and srce_fl_id = $input );
exit;
EOF };
i want to return another column value in the same query .
is it possible or do I have to re iterate the 4 lines again
Like I want to execute the below query
select to_date(to_char(data_acq_cyc_ts,'dd.mm.yyyy'),'dd.mm.yyyy'),rcrd_cnt from rptg.r_sb_stg_data_fl_acq_cyc_cntl where data_acq_cyc_cntl_id = (select max(data_acq_cyc_cntl_id) from rptg.r_sb_stg_data_fl_acq_cyc_cntl where srce_id=1 and srce_fl_id = 109)
How can I store the additional value to_date(to_char(data_acq_cyc_ts,'dd.mm.yyyy'),'dd.mm.yyyy') in the variable
Thanks for taking out your time to solve it