How to vacuum sqlite database?

前端 未结 3 2077
醉话见心
醉话见心 2021-02-02 08:27

I want to know how to vacuum sqlite database. I tried a syntax MANUAL VACUUM command for the whole database from command prompt:

 $sqlite3 database_name \"VACUU         


        
3条回答
  •  爱一瞬间的悲伤
    2021-02-02 08:47

    You don't to specify the table name in the syntax. Only VACUUM works.

    Also, it will clean the main database only and not any attached database files.

    For more info, refer to the SQLite documentation.

提交回复
热议问题