select ' select ' from dual
union
select '(select count(1) from ' ||
table_name ||
' ' ||
table_name ||
'), '
from user_tables
where table_name like '%SAP_ITF%'
union
select '(select count(1) from ' ||
table_name ||
' ' ||
table_name ||
'), '
from user_tables
where table_name like '%SAP_ITF%'
-- Retirar a última vírgula
union
select 'from dual' from dual
union
select 'from dual' from dual
0 comentários:
Postar um comentário