Delete all tables in Derby DB

后端 未结 10 1044
离开以前
离开以前 2020-12-30 05:42

How do i delete all the tables in the schema on Apache Derby DB using JDBC?

10条回答
  •  一向
    一向 (楼主)
    2020-12-30 06:23

    I think most db providers don't allow DROP TABLE * (or similar).

    I think the best way would be to SHOW TABLES and then go through each deleting in a loop via a resultset.

    HTH.

提交回复
热议问题