MySQLのレコードを全削除する
DELETEかTRUNCATEを使う。
DELETE FROM ${table_name};
TRUNCATE table ${table_name};
実際にやってみましょう。
mysql> delete from company; Query OK, 8 rows affected (0.07 sec)

mysql> truncate table agent_mst
-> ;
Query OK, 0 rows affected (0.17 sec)
mysql> select * from agent_mst;
Empty set (0.00 sec)
Nice
