谢谢你
以下就是查询用户表表名、列名、行数、建表日期的SQL,如下:
SELECT O.name,I.name, SUM(rowcnt) AS TABLE_ROWS, O.crdate
FROM sysobjects O
LEFT JOIN systabstats T ON T.id = O.id
LEFT JOIN sysindexes I ON I.id=O.id AND I.status2 0 AND I.status & 2048 = 2048 AND I.indid>0
WHERE O.sysstat2 0 AND O.type = 'U'
GROUP BY O.name,I.name, O.crdate
ORDER BY 1 ASC