mysql delete statement difference 2 as well as two ways of deleting

truncate

TRUNCATE TABLE boys;

TRUNCATE and DELETE difference:

TRUNCATE delete can not add the filter criteria
TRUNCATE table is deleted and then inserted into the re-start
DELETE to delete and then insert, insert data starting from the last breakpoint

TRUNCATE delete no return value, DELETE delete the return value

TRUNCATE can not be rolled back delete, DELETE you can delete

Guess you like

Origin blog.51cto.com/14437184/2439977