您的位置: 首页 > 文章 > MySQL截断表:truncate table 表名 MySQL截断表:truncate table 表名 分类: 文章 • 2024-03-22 19:29:16 使用命令: truncate table sys_system_settings; 其中sys_system_settings为表名。截断表可以用于删除表中的所有数据,并自动恢复主键id从新计数。 另外可在Navicat中手动操作: 在表上点右键->截断表