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 | 31 |
Tags
- resource
- port
- DB 도메인
- tomcat
- profile
- 단축키
- Source
- Eclipse
- Windows 10
- GIT
- lsof
- 네트워크
- bash
- IntelliJ
- import
- context
- maVen
- copy-dependencies
- netsh
- Windows
- grep
- VirtualBox
- Mac
- web.xml
- JavaScript
- 공통표준용어
- Quartz
- ssh
- xargs
- find
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