close

MSSQL 資料表的清空資料重新編號的語法:

truncate table table_name

 

SQLite 清空資料表的語法:

DELETE FROM table_name

SQLite 重新編號的語法:

DELETE FROM sqlite_sequence WHERE name = 'table_name'

通常 SQLite 刪除資料後,資料庫檔案大小不會因此而縮小,仍會占著部份磁碟空間,建議可以磁碟重組、壓縮資料,語法:

vacuum

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Austin 的頭像
    Austin

    奇幻旅程

    Austin 發表在 痞客邦 留言(0) 人氣()