我试试这句话
select schema_name , tabs_name ,
('select count(*) from' || schema_name ||'.'|| tabs_name)
from sysibm.systables
where schema_name = 'Sample'
我想在字符串类型中可以执行字符串还是必须是create procedure或者任何?
'select count(*) from' || schema_name ||'.'|| tabs_name
提前谢谢你 来自泰国
答案 0 :(得分:1)
试试这个:
Select TABLE_SCHEMA, TABLE_NAME, NUMBER_ROWS from qsys2.systablestat
Where TABLE_NAME = 'Sample'