반응형

💾 테이블 코멘트
전체 테이블 코멘트 조회
SELECT
table_name, table_comment
FROM
information_schema.tables
WHERE
table_schema = 'DB 이름' AND table_name = '테이블 이름';
특정 테이블 코멘트 조회
SELECT
table_name, table_comment
FROM
information_schema.tables
WHERE
table_schema = 'DB 이름' AND table_name = '테이블 이름';
반응형
💾 컬럼 코멘트
전체 테이블의 컬럼 코멘트 조회
SELECT
table_name, column_name, column_comment
FROM
information_schema.columns
WHERE
table_schema = 'DB 이름';
특정 테이블의 컬럼 코멘트 조회
SELECT
table_name, column_name, column_comment
FROM
information_schema.columns
WHERE
table_schema = 'DB 이름' AND table_name = '테이블 이름';
References.
1. 확장형 뇌 저장소 - [MySQL] 테이블, 컬럼 코멘트(Comment) 조회
반응형
'IT' 카테고리의 다른 글
| [SpringBoot] 에러 전파와 /error 호출 흐름 (5) | 2025.01.24 |
|---|---|
| MySQL에서 테이블 백업하기: CREATE TABLE AS와 LIKE 사용법 (1) | 2025.01.24 |
| [GitHub] 깃허브 Private repository commit 잔디 보이게하기 (2) | 2025.01.24 |
| [Spring] 어노테이션(Annotation) (1) | 2025.01.24 |
| [SpringBoot] 통합테스트(Integration Test) (1) | 2025.01.24 |