truncate 用来清空表,清空数据,主键也恢复到初始的1

用法——二者都可以

truncate table name 

truncate name

效果:

MYSQL TRUNCATE 清空表-QUI-Notes