MySQL截斷表:truncate table 表名

使用命令: truncate table sys_system_settings; 其中sys_system_settings爲表名。截斷表可以用於刪除表中的所有數據,並自動恢復主鍵id從新計數。 另外可在Navicat中手動操作: 在表上點右鍵->截斷表
相關文章
相關標籤/搜索