清空自增id的两种方法 第一种 //需要先delete表数据 alter table piuto_custom_user_attribute auto_increment=1; 第二种 清空表数据并重置id: truncate piuto_custom_user_attribute;