truncate all tables in mysql database 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';