標簽:mysql
1、delete from table_name
一行一行刪除,只刪除表數據,auto_increament仍停留在最後一天數據的下一個值。
2、truncate table_name
快捷刪除表數據。先刪除整個表,然後重新建表結構。auto_increament從1開始。
本文出自 “我的PHP之路” 博客,请务必保留此出处http://phpme.blog.51cto.com/663593/1405708
關于Mysql刪除表數據的兩種方式對比,布布扣,bubuko.com
標簽:mysql
原文地址:http://phpme.blog.51cto.com/663593/1405708