I am trying to generate sql from sql. Like
select 'select count(*) from ' ||
tabschema ..............syscat.tables where.....;
is there a way to run this with a single statement?
I tried
with temp1(sql) as
(
select 'select count(*) from ' ||
tabschema ..............syscat.tables where.....;
)
select * from new table (call admin_cmd(select sql from temp1));
I know the above is a wishful thinking. But this will clear a major
headache I've been having in recent past...