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 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 :: SQL Server OPENQUERY WITH result SETS 
Sql :: copy from one table to another postgres using matching column 
Sql :: arithmetic operators in sql 
Sql :: Create table with JSON column SQL Server 
Sql :: mysql dump 
Sql :: when matched in sql server 
Sql :: microsoft sql server python connection 
Sql :: postgres select except 
Sql :: how to generate ids in sql 
Sql :: timestamp datatype in sql 
Sql :: enum in sql server 
Sql :: postgres stored procedure 
Sql :: pgadmin check database 
Sql :: sql rename column in select 
Sql :: oracle cpu metric 
Sql :: find all tables where column name exists oracle 
Sql :: mdl ddl acl 
Sql :: c# sql conennection string 
Sql :: mysql regex phone number 
Sql :: execution order in sql 
Sql :: create table kusto 
Sql :: mysql average from two table 
Sql :: sql alias 
Sql :: sql update by id 
Sql :: truncate table sql server foreign key 
Sql :: merge command in sql 
Sql :: mysql not 
Sql :: select top values sql 
Sql :: sql order by 
Sql :: sql recherche nom prenom 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =