Is anyone able to point me in the direction of a tool/script that will drop all tables from a specified database connection? Ideally Java/JDBC.
I have a development database and don't have much control over it, but I can drop tables one by one. It takes time to do this, especially seeing as I need to look at the FKs etc.
An app that did a topological sort to find which order to delete the tables in would be great :)
DROP DATABASE name(and maybe thenCREATE DATABASE nameif you intend to rebuild). – DMA57361♦ Sep 12 '11 at 11:53