Use delete to delete records
##mysql> delete from user where id = 1;
Delete the record of the row with ID 1, Li Wenkai.
Clear table records
delete and truncate are the same, but they have one difference, that is, DELETE can return the number of deleted records, while TRUNCATE TABLE returns 0.
If there is an auto-increment field in a table, use truncate table to restore the starting value to 1.
#【Remember】