Get the rows count of all the table in Sybase

SELECT USER_NAME(uid), O.name, rowcnt(doampg), S.name, creation = O.crdate, case sysstat2 & 57344 when 32768 then 'datarows' when 16384 then 'datapages' else 'allpages' end FROM sysobjects O, sysindexes I, syssegments S WHERE O.type = 'U' AND O.id=I.id AND I.indid IN (0,1) AND I.segment=S.segment AND O.type!='S' ORDER BY 1,2

 

你可能感兴趣的:(user,table,Sybase)