TRUNCATE TABLE
テーブルの中身を空にする。
Example
mysql> truncate table 'table1'; Query OK, 1 row affected (0.00 sec)
DELETE FROM〜 でも同様のことは可能。
Example
mysql> delete from table1 -> where id = '1'; Query OK, 1 row affected (0.00 sec)
上記の例では id が 1 のレコードが全て削除された。