티스토리 뷰
디비별 테이블 용량 확인
-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
- empty-cell
- html layout
- css
- html base tag
- A%B
- html
- Java
- JavaScript
- html a tag
- input type 종류
- 미디어 태그
- BAEKJOON
- selcetor
- 기본선택자
- ScriptTag
- 변수
- text formatting
- 외부구성요소
- scanner
- 스크립태그
- typeof
- improt
- border-spacing
- 입력양식
- html pre
- initialized
- html input type
- caption-side
- html atrribute
- CascadingStyleSheet
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함