This is a discussion on How to calculate the table size in mysql within the Database Support forums, part of the Web Development category; Hi, can someone explain me about how to calculate a particular table size created in a mysql database ?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, can someone explain me about how to calculate a particular table size created in a mysql database ? |
|
#2
| |||
| |||
| do u mean the file size of the table ?.. If it's you can query the details from information_schema tables. Consider the below example... Let's assume that the database name is 'emp_database' and table name is 'emp_master' -- SELECT table_schema, table_name, ROUND(data_length/1024/1024,2) total_size_mb FROM information_schema.tables WHERE table_name = 'emp_master' AND table_schema = 'emp_database'; --------------------------------------------- table_schema | table_name | total_size_mb --------------------------------------------- emp_database | emp_master | 2.57 -- Check out this...
__________________ Keep smiling... Last edited by priyan : 07-11-2007 at 07:10 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is the difference between DELETE TABLE and TRUNCATE TABLE commands in SQL Server | oxygen | Database Support | 6 | 11-23-2007 05:17 AM |
| Mysql - Table Join | write2ashokkumar | Database Support | 2 | 09-14-2007 05:12 AM |
| What are the different tables present in mysql, which type of table is generated when | oxygen | Database Support | 2 | 07-26-2007 02:37 AM |
| Setting Index for mysql table fields | Jeyaseelansarc | Database Support | 4 | 07-15-2007 10:22 PM |
| calculate the PR in sites? | krawner | Search Engine Optimization | 6 | 05-19-2007 10:06 PM |
Our Partners |