MySQL数据库查看数据表占用空间大小和记录数的方法
这篇文章主要介绍了MySQL数据库查看数据表占用空间大小和记录数的方法,如果想知道MySQL数据库中每个表占用的空间、表记录的行数的话,可以打开MySQL的information_schema 数据库查询,本文就讲解查询方法,需要的朋友可以参考下
MySQL数据库查看数据表占用空间大小和记录数
MySQL数据库中每个表占用的空间、表记录的行数的话,可以打开MySQL的 information_schema 数据库。在该库中有一个 TABLES 表,这个表主要字段分别是: TABLE_SCHEMA : 数据库名 TABLE_NAME:表名 ENGINE:所使用的存储引擎 TABLES_ROW...
SQL Server 查看数据表占用空间大小的SQL语句
1 declare @name varchar(1000) 2 declare @sql varchar(1000) 3 4 if object_id('tempdb..#space') is not null drop table #space 5 create table #space(...
SQL Server 查看数据表占用空间大小的SQL语句
declare @name varchar(1000) declare @sql varchar(1000) if object_id('tempdb..#space') is not null drop table #space create table #space(name varchar(...