How do I delete a table in DB2?
Answer
Procedure
Answer
Procedure
- To drop a table, use a DROP TABLE statement. The following statement drops the table that is called DEPARTMENT: DROP TABLE DEPARTMENT.
- To drop all the tables in a table hierarchy, use a DROP TABLE HIERARCHY statement. The DROP TABLE HIERARCHY statement must name the root table of the hierarchy to be dropped.