sql统计表总数:
select count(*) from sysobjects where type=‘U’
在这里插入图片描述
统计字段总数:
select count(*) from syscolumns where id = object_id(‘表名’)
在这里插入图片描述
sql统计表总数:
select count(*) from sysobjects where type=‘U’
统计字段总数:
select count(*) from syscolumns where id = object_id(‘表名’)