Mysql Get Table Size

[Solved] Mysql Get Table Size | Sql - Code Explorer | yomemimo.com
Question : mysql get table size

Answered by : calm-civet-6i0pizqsjlon

SELECT TABLE_NAME AS `Table`, ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)`
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = "bookstore"
ORDER BY (DATA_LENGTH + INDEX_LENGTH)
DESC;

Source : https://chartio.com/resources/tutorials/how-to-get-the-size-of-a-table-in-mysql/ | Last Update : Sat, 26 Dec 20

Question : mysql size of table

Answered by : kennedy-carvalho

SELECT table_name, round(((data_length + index_length) / (1024*1024)),2) as "size in megs" FROM information_schema.tables WHERE table_schema = "named_db";

Source : https://jonathanstreet.com/blog/disk-space-database-table-mysql-postgresql/ | Last Update : Tue, 30 Aug 22

Question : check size table

Answered by : difficult-dove-ir4z3no09wa6

SELECT pg_size_pretty( pg_total_relation_size('tablename') );
(postgres)

Source : | Last Update : Mon, 22 Jun 20

Answers related to mysql get table size

Code Explorer Popular Question For Sql