Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the size of a table in SQL?

Tags:

sql

How to find the size of a table in SQL?

like image 826
anjum Avatar asked Aug 31 '10 05:08

anjum


1 Answers

SQL Server:-

sp_spaceused 'TableName' 

Or in management studio: Right Click on table -> Properties -> Storage

MySQL:-

SELECT table_schema, table_name, data_length, index_length FROM information_schema.tables 

Sybase:-

sp_spaceused 'TableName' 

Oracle:- how-do-i-calculate-tables-size-in-oracle

like image 89
Kashif Avatar answered Sep 19 '22 13:09

Kashif