SELECT 'SELECT '''+TABLENAME+''' AS 表名,'''+tabledefine+''' as 中文,COUNT(*)记录数 FROM '+TABLENAME+' union all ' FROM RPT_GRPDEF