Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- JavaScript
- Quartz
- Mac
- grep
- netsh
- 줄바꿈 문자
- find
- web.xml
- vscode
- VirtualBox
- context
- 네트워크
- port
- Windows
- import
- Source
- maVen
- ssh
- xargs
- IntelliJ
- resource
- 단축키
- plugin
- tomcat
- profile
- Eclipse
- lsof
- GIT
- bash
- Windows 10
Archives
- Today
- Total
develog
[MySql] 테이블, 컬럼 코멘트 조회/수정 본문
테이블 코멘트 조회/수정
-- 테이블 코멘트 조회
select table_schema, table_name, table_comment
from information_schema.tables
where table_schema = 'my_db'
order by table_schema, table_name
;
-- 테이블 코멘트 수정
alter table tb_member comment '회원정보';
컬럼 코멘트 조회/수정
-- 컬럼 코멘트 조회
select table_schema, table_name, column_name, column_comment
from information_schema.columns
where table_schema = 'my_db'
order by table_schema, table_name, ordinal_position
;
-- 컬럼 코멘트 수정
alter table tb_member modify column regist_dt datetime(6) comment '등록일시';
Comments