SQL-J Language Reference
Page 27 of 121

DROP TABLE statement

DROP TABLE removes the specified table.

Syntax

DROP TABLE TableName

Example

DROP TABLE Hotels

Dependency System

If there is an open cursor or a view that uses the table being dropped, then the DROP TABLE statement generates an error and does not drop the table. Dropping a table invalidates other statements that depend on the table.

When a table is dropped, all triggers on that table are automatically dropped. (You don't have to drop a table's triggers before dropping the table.)