How to get a result from this code
EXECUTE IMMEDIATE \'SELECT * FROM \' || table_name
through for loop
The usual m
You need to declare a cursor from the dynamic sql and loop through it.
An example of this is available in the manual: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/dynamic.htm#CHDJHAHE