Query to run Dynamic SQL Using XML on SQL> prompt
SELECT table_name, extractvalue(dbms_xmlgen.getxmltype('select count(*) from ' || table_name),'//text()')
FROM user_Tables
WHERE table_name LIKE 'A%'
The query above is just sample. Put your query in getxmltype and you are all set.
Wednesday, October 6, 2010
Subscribe to:
Posts (Atom)