select 'select ''' || table_name || ''' ' || '||' || ' count(*) from ' ||
owner || '.' || table_name ||
'@dblink' || chr(10) || 'union all' ||
chr(10) || 'select ''' || table_name || '''' || '||' ||
' count(*) from ' || owner || '.' || table_name || ';'
from
sync_table@dblink where table_name like 'TAB\_SYNC\__\__' escape '\';
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25148509/viewspace-715096/
,如需转载,请注明出处,否则将追究法律责任。