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
- httpd-dav.conf
- vim color scheme
- unique_id
- node.js
- httpd-mpm.conf
- Node.js 소스 설치
- python 3.5.10
- Mod_Security 룰 셋
- python 3.X 소스 설치
- httpd-vhosts.conf
- MySQL
- CentOS
- mod_unique_id
- CentOS 6.10
- epel repository
- httpd 2.2.32
- jQuery
- httpd-info.conf
- httpd.conf
- Node.js apache 연동
- PHP 5.2.17 .ini
- httpd-default.conf
- vimrc 옵션
- apache 연동
- CentOS 6
- httpd-autoindex.conf
- MySQL 5.1.41
- Repository
- PHP 5.2 .ini
- gcc update
Archives
- Today
- Total
곰시기's
[MySQL] - Comment 추가, 삭제 본문
table을 생성하면서 comment 입력하거나, alter table 명령어를 통해 추가 또는 수정할 수 있다.
생성 시 comment 부여
table에 comment 추가
column에 comment를 추가하거나 수정할때에는 column 전체를 변경해야 함
생성 시 comment 부여
create table {Table-Name} (
column명 {DATA-Type} {제약조건} comment 'comment',
column명 {DATA-Type} {제약조건} comment 'comment'
);
생성 후 comment 추가, 수정table에 comment 추가
ALTER TABLE {Table-Name} COMMENT = 'comment';
column에 comment 추가column에 comment를 추가하거나 수정할때에는 column 전체를 변경해야 함
ALTER TABLE {Table-Name} MODIFY {column명} {DATA-Type} {제약조건} COMMENT 'comment';
comment 삭제
ALTER TABLE {Table-Name} COMMENT = '';
ALTER TABLE {Table-Name} MODIFY {column명} {DATA-Type} {제약조건};
'Sever > MySQL' 카테고리의 다른 글
[MySQL] - INSERT (0) | 2021.01.21 |
---|---|
[MySQL] - 숫자만 검색 REGEXP (0) | 2021.01.18 |
[MySQL] - Show Database (0) | 2020.11.10 |
[MySQL] - microtime (0) | 2017.12.05 |
[MySQL] - charset (0) | 2017.12.05 |
Comments