Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get database size mysql

SELECT table_schema "DB Name",
        ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" 
FROM information_schema.tables 
GROUP BY table_schema; 
Comment

how to check database size in mysql

// QUERY 

SELECT table_schema AS "Database Name",
  ROUND(SUM(data_length + index_length) / 1024 / 1024, 2)
  AS "Size in (MB)"
  FROM information_schema.TABLES
  GROUP BY table_schema;
Comment

mysql check db size

SELECT table_schema "DB Name",
        ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" 
FROM information_schema.tables 
GROUP BY table_schema; 
Comment

mysql size of database

SELECT table_schema "Data Base Name", sum( data_length + index_length ) / (1024 * 1024) "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema ;
Comment

get size of mysql database

SELECT table_schema AS "Database", 
ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size (MB)" 
FROM information_schema.TABLES 
GROUP BY table_schema;
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql parse int 
Sql :: SQl Server Versionen Releases und Build-Nummern 
Sql :: data directory postgresql 
Sql :: sql add months to date 
Sql :: safe mysql 
Sql :: not operator in oracle 
Sql :: oracle sessions_per_user limit 
Sql :: sql select data from last week 
Sql :: sql select between two dates 
Sql :: mysql jdbc timezone 
Sql :: get last three characters in mysql column 
Sql :: foreign key sqlite3 python 
Sql :: ORA-00903: invalid table name 
Sql :: how to use a database to see tables mysql 
Sql :: postgres autoincrement primary key 
Sql :: sql create a new table 
Sql :: mysql find missing values 
Sql :: convert rows to string sql server 
Sql :: postgresql search object in array 
Sql :: sql concat string with column value 
Sql :: mysql query first character 
Sql :: sql server get schema of table 
Sql :: oracle trigger after logon on schema 
Sql :: postgres datetime now 
Sql :: select last 2 characters sql 
Sql :: date_part mysql 
Sql :: mysql create database utf8 
Sql :: sqlite truncate tables command 
Sql :: create table in microsoft sql server 
Sql :: nested if in mysql 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =