Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql list bigger table

SELECT
	table_schema AS `Database`,
	table_name AS `Table`,
	round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM
	information_schema.TABLES
ORDER BY
	(data_length + index_length)
	DESC;
Comment

return size of tables in mysql

SELECT 
     table_schema as `Database`, 
     table_name AS `Table`, 
     round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` 
FROM information_schema.TABLES 
ORDER BY (data_length + index_length) DESC;
Comment

mysql list tables by size

/*replace your_database_name with your db name, and then run this:*/
SELECT TABLE_NAME, table_rows, data_length, index_length, 
round(((data_length + index_length) / 1024 / 1024),2) "Size in MB"
FROM information_schema.TABLES WHERE table_schema = "your_database_name"
ORDER BY (data_length + index_length) DESC;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql concat 
Sql :: sql current date 
Sql :: mysql failed to login as root@localhost 
Sql :: xampp import sql file command line 
Sql :: Msg 241, Level 16, State 1, Line 12 Conversion failed when converting date and/or time from character string. 
Sql :: mysql change timestamp on update 
Sql :: left join in codeigniter query builder 
Sql :: mysql show schema 
Sql :: oracle apex warn on unsaved changes 
Sql :: oracle list grants on package 
Sql :: mysql two column combination unique 
Sql :: how to combine diff colmun value using group by postgres 
Sql :: sql server convert date to weekday 
Sql :: sqlite save db 
Sql :: how to count null values in sql 
Sql :: primary key multiple 
Sql :: update one column from another column in same table 
Sql :: mysql like case sensitive 
Sql :: sqlalchemy postgres timestamp with timezone 
Sql :: postgresql get connection string 
Sql :: change user mysql password 
Sql :: mysql get last 2 month data 
Sql :: select * where id = 1,2,3 
Sql :: sql number columns 
Sql :: mysql order by 
Sql :: mysql select row with min date 
Sql :: q operator in sql 
Sql :: mysql wont stop 
Sql :: sum value by month sql 
Sql :: c# select Mysql 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =