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
- proxycfg
- GitLab
- macos
- 보안양파
- miniconda
- elastic stack
- Elasticsearch
- ssh key 배포
- G-suite
- 한글가이드
- xe guest utilities
- centos 8
- x-pack
- Windows
- freebsd
- hardening
- pfsense
- endpoint security
- XCP-ng
- application security
- Kibana
- bash
- PlayBook
- Proxy
- ansible
- docker
- 로그인불가
- Kibana server is not ready yet
- ELASTIC
Archives
- Today
- Total
선 밖에 선 자유인
MySQL 테이블 관련 명령어 본문
/* 테이블 생성 */
create table [테이블명](id int,name varchar(20));
/* 컬럼 추가 */
alter table [테이블명] add [컬럼명] [타입] [옵션];
ex) alter table [테이블명] add [컬럼명] varchar(100) not null default '0';
/* 컬럼 중간에 추가 */
alter table [테이블명] add [컬럼명] [type명] after [위치할컬럼명];
/* 컬럼 순서 이동 */
alter table [테이블명] modify [컬럼명] [type명] after [위치할컬럼명];
/* 컬럼 삭제 */
alter table [테이블명] drop [컬럼명];
/* 컬럼명 변경 및 타입 변경 */
alter table [테이블명] change [컬럼명] [변경할컬럼명] varchar(12);
/* 컬럼 타입 수정 */
alter table [테이블명] modify [컬럼명] varchar(14);
/* 테이블명 수정 */
alter table [테이블명] rename [변경할테이블명];
/* 테이블 삭제 */
drop table [테이블명];
Comments