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