I have a select query in sqlplus
select trim(status) from AML.amletl_load_status where mov_date in(select max(mov_date) mov_date from AML.amletl_load_status);
Then i want to set result return as variable A I use but it seem not work:
getStatusETL
()
{select trim(status)from AML.amletl_load_status where mov_date in(select max(mov_date) mov_date from AML.amletl_load_status);!}