# test table 생성

create table test (

name varchar(10)

);


# test table에 osy란 number(10)타입의 컬럼 추가

SQL > alter table test add(osy number(10));


# test table에 osy 컬럼명을 osy88 로 컬럼명 변경

SQL > alter table test rename column osy to osy88;


# test table에 osy88 컬럼 데이터 타입 변경

SQL > alter table test modify(osy88 varchar(10));


# test table에 osy88 컬럼 삭제

SQL > alter table test drop(osy88);

'Database > Oracle' 카테고리의 다른 글

[OUTER JOIN] sql outer join  (0) 2013.12.04
Outer Join (LEFT, RIGHT, FULL OUTER JOIN)  (0) 2013.12.03
Oracle 자동 증가 컬럼(Sequence) 사용  (0) 2013.02.06
Oracle auto-increment trigger 형식  (0) 2013.02.06
Oracle Tablespace  (0) 2013.01.13

+ Recent posts