22 05 2017
http://cafe.naver.com/ocmkorea/book5085531/17192 테이블 수정
1 2 3 4 5 6 7 |
#>su - oracle $>sqlplus /nolog SQL>connect sys /as sysdba SQL> alter table ABC_OPEN add(FILE_NAME varchar2(30)); SQL> alter table ABC_COURSECODE add(FILE_NAME1 varchar2(30), FILE_NAME2 varchar2(30), FILE_NAME3 varchar2(30), FILE_NAME4 varchar2(30), FILE_NAME5 varchar2(30)); SQL> alter table ABC_COMPLETEUSER add(DIPLOMANUM NUMBER(7,0)); |
테이블 변경
1 2 3 4 5 |
ALTER TABLE ABC_OPEN ADD( birth DATE) ; ALTER TABLE ABC_OPEN MODIFY ename VARCHAR2(30) ; ALTER TABLE ABC_OPEN DROP COLUMN ename ; ALTER TABLE ABC_OPEN SET UNUSED (eno) ; ALTER TABLE ABC_OPEN DROP UNUSED COLUMNS ; |