Skip to content. | Skip to navigation
Use this query to select and drop all tables of a schema
SCHEMA NAME = TEST
db2 -x "select 'drop table '||rtrim(tabschema)||'.'||rtrim(tabname) from syscat.tables where tabschema = 'TEST'"