Clear mysql table data

delete from 表名;

truncate table 表名;

truncate completely removed, can not be restored; equivalent to retain the table structure, reconstruction of this table,

And delete records logs, you can also specify delete, truncate table deletes all the data.

Guess you like

Origin blog.csdn.net/weixin_39616995/article/details/88116484