How do you include a variable in a select into statement enclosed in srw.do_sql()
srw.do_sql('select count(emp_id)
into ' || v_ct ||
' from table1 t1, table2 t2
where trunc(t1.date_entered) = ''12-MAR-07''
and t1.test = t2.test_link');
the variable v_ct is not being recognised.
srw.do_sql('select count(emp_id)
into ' || v_ct ||
' from table1 t1, table2 t2
where trunc(t1.date_entered) = ''12-MAR-07''
and t1.test = t2.test_link');
the variable v_ct is not being recognised.