How to use SQLite 3's vacuum command in Python

后端 未结 2 1852
故里飘歌
故里飘歌 2021-02-12 06:14

I cannot find any example on the net of how the SQLite 3 vacuum command is done on a database.

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-12 06:37

    import sqlite3  
    
    con = sqlite3.connect()  
    ..  
    con.execute("VACUUM") 
    .. 
    

提交回复
热议问题