I have a code like this:
for _i in ( select * from tmp_table order by 1 ) loop execute format(\'select %I_upddt from %I where %I_id = %s\', _table, _table, _t