테이블 삭제

설명

DROP 구문을 이용하여 기존의 테이블을 삭제할 수 있다. 한 DROP 구문으로 여러 개의 테이블을 삭제할 수 있으며 테이블이 삭제되면 포함된 인스턴스도 모두 삭제된다.

구문 

DROP [ table_type ] table_spec [ { ,table_spec }_ ] [ ; ]

table_type:
[TABLE | CLASS]
[VIEW | VCLASS]

table_spec:
single_table_spec
( single_table_spec [ { , single_class_spec }_ ] )

single_table_spec:
[ ONLY ] table_name
ALL table_name [ ( EXCEPT table_spec ) ]

예제

다음은 history 테이블을 삭제하는 예제이다.

DROP TABLE history ;