Drop all tables command

后端 未结 10 588
滥情空心
滥情空心 2020-11-28 23:52

What is the command to drop all tables in SQLite?

Similarly I\'d like to drop all indexes.

10条回答
  •  半阙折子戏
    2020-11-28 23:55

    Once you've dropped all the tables (and the indexes will disappear when the table goes) then there's nothing left in a SQLite database as far as I know, although the file doesn't seem to shrink (from a quick test I just did).

    So deleting the file would seem to be fastest - it should just be recreated when your app tries to access the db file.

提交回复
热议问题