sql语句命令:让table中的自增id 从1开始。

命令:TRUNCATE TABLE table_name;

该命令能够清空表中的数据,并且让id从1开始。

注意:该表的数据注意提前保留好,不然丢了就找不到了。

猜你喜欢

转载自blog.csdn.net/liuzhongyefirst/article/details/82811857