티스토리 뷰
디비별 테이블 용량 확인
-Maraidb
해당 코드 복사하여 실행. 모든 테이블 크기 챙겨갈 수 있음.
SELECT
concat(table_schema,'.',TABLE_NAME),
concat(round(data_length/(1024*1024*1024),2),'G') DATA,
concat(round(index_length/(1024*1024*1024),2),'G') idx,
concat(round((data_length+index_length)/(1024*1024*1024),2),'G') total_size,
round(index_length/data_length,2) idxfrac
FROM information_schema.TABLES
WHERE table_rows is not null;
-MSSQL
exec sp_spaceused [테이블명]
'ERROR > SQL' 카테고리의 다른 글
[Mariadb/SQL]문자열 행 분리 (1) | 2023.05.19 |
---|---|
[mariadb]DATE_SUB/DATE_ADD(INTERVAL 단위별 차이) (0) | 2023.05.04 |
[MariaDB/Procedure]lock wait timeout exceeded try restarting transaction (0) | 2023.01.02 |
[MariaDB/Procedure]SELECT INTO (0) | 2023.01.02 |
Could not launch in profiling mode because no profilers are configured. (0) | 2022.11.09 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- html input type
- 스크립태그
- initialized
- text formatting
- CascadingStyleSheet
- 변수
- A%B
- html a tag
- html layout
- empty-cell
- BAEKJOON
- css
- 기본선택자
- html base tag
- 외부구성요소
- scanner
- html
- improt
- caption-side
- 미디어 태그
- selcetor
- html atrribute
- typeof
- JavaScript
- html pre
- border-spacing
- input type 종류
- ScriptTag
- 입력양식
- Java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함