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

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 :: mysql get table size 
Sql :: set password for postgres user ubuntu 
Sql :: create database mysql utf8 
Sql :: Port 5432 is already in use Usually this means that there is already a PostgreSQL server running on your Mac. If you want to run multiple servers simultaneously, use different ports. 
Sql :: get role postgres 
Sql :: mysql alter column default 
Sql :: turn on foreign keys check mysql 
Sql :: fetch first 5 rows in oracle sql developer 
Sql :: list all triggers in sql server 
Sql :: mysql workbench in ubuntu 14.04 
Sql :: mysql list databases 
Sql :: dbms output 
Sql :: show databases in sql server 
Sql :: mysql grant all privileges to user from any host 
Sql :: reset mysql root password mac 
Sql :: sql server kill all connections 
Sql :: mysql connectorj maven de 
Sql :: mysql get last row 
Sql :: rermove categories woocommerce sql 
Sql :: change column name mysql command line 
Sql :: mysql concatenate two columns into one 
Sql :: mysql delete row 
Sql :: your password does not satisfy the current policy requirements 
Sql :: install mysql server linux 
Sql :: install mysqldump ubuntu 
Sql :: oracle extract minute from date 
Sql :: SELECT User,Host FROM mysql.user; 
Sql :: metasploit start postgresql 
Sql :: import local sql into remote mysql 
Sql :: sql get user account 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =