SQL Server數據庫中查詢含有某個字段的表及該表記錄條數

SELECT object_name(sc.id) as TableName, sc.Name as ColumnName, si.rows as RowCounts FROM SysColumns sc LEFT JOIN SysObjects so ON sc.id = so.id object LEFT JOIN SysIndexes si ON sc.id = si.id WHERE so
相關文章
相關標籤/搜索