728x90
반응형
1. COLUMN 추가
- ALTER TABLE table_name ADD column_name datatype
ex) ALTER TABLE Product ADD Name VARCHAR(50)
2. COLUMN 삭제
- ALTER TABLE table_name DROP COLUMN column_name
ex) ALTER TABLE Product DROP COLUMN Name
3. COLUMN TYPE 변경
1) MS SQL
- ALTER TABLE table_name ALTER COLUMN column_name datatype
ex) ALTER TABLE Product ALTER COLUMN Name VARCHAR(30)
2) MYSQL / ORACLE
- ALTER TABLE table_name MODIFY COLUMN column_name datatype
ex) ALTER TABLE Product MODIFY COLUMN Name VARCHAR(30)
728x90
'개발 > Database' 카테고리의 다른 글
[MS-SQL] 날짜(DATE), 시간(TIME) 함수 (0) | 2017.07.05 |
---|---|
DATABASE / DBMS(Database Management System) (0) | 2017.03.07 |