db2

Drop table

Introduction#

Basic instructions to drop a table in DB2.

Basic Drop Table Syntax

db2 connect to {databaseName}
db2 drop table {schema}.{table}
db2 connect reset

The schema is not necessary if it matches the current user name. The “db2” prefix is not necessary if you are already in a DB2 command prompt.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow