truncate all tables in db mysql code example
Example: how to truncate all table in mysql workbench
SELECT
Concat('TRUNCATE TABLE ', TABLE_NAME)
FROM
INFORMATION_SCHEMA.TABLES
WHERE
table_schema = 'db_name';
SELECT
Concat('TRUNCATE TABLE ', TABLE_NAME)
FROM
INFORMATION_SCHEMA.TABLES
WHERE
table_schema = 'db_name';