MySQL 테이블 레코드 수와 사이즈

조종태·2019년 5월 5일
0

sql

목록 보기
2/2
SELECT
	table_name AS 'tables', 
    table_rows, 
    round(((data_length + index_length) / 1024 / 1024), 2) 'size_mb'
FROM 
	information_schema.tables
WHERE 
	table_schema = "groupware"
ORDER BY 
	(data_length + index_length) DESC;
profile
일주일 동안 일을 하면서 다음에 사용할 수 있는 내용을 정리합니다.

0개의 댓글