SELECT NAME FROM SYSIBM.SYSTABLES WHERE CREATOR='ABCD'
This query will return the list of tables with in the creator 'ABCD' i need the count of records for those tables.
Joined: 14 Oct 2005 Posts: 1024 Location: Bangalore,India
Hello Rajesh,
If you want to count the number of rows ine ach table where creator ='ABCD' then u can use following query
Code:
SELECT CARDF
FROM SYSIBM.SYSTABLES
WHERE CREATOR LIKE 'ABCD%' WITH UR;
Quote:
CRADF definesTotal number of rows in the table or total number of LOBs in an auxiliary table. The value is -1 if statistics have not been gathered or the row describes a view, alias, or created temporary table. This is an updatable column.
OR If u want total number of table for which CREATOR is 'ABCD' then u can use query given by Ashmir
Code:
SELECT COUNT(NAME) FROM SYSIBM.SYSTABLES WHERE CREATOR='ABCD' with ur;