Truncation does not work in some cases, for example,
when you have an index type of things and some foreign key constraints
The simple way I suggest
RENAME TABLE table_name TO t1; CREATE TABLE table_name LIKE t1; DROP TABLE t1;
or you can also use DELETE FROM table_name;
Kalaiarasan manimaran
source share