Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to truncate all table in mysql workbench

SELECT
    Concat('TRUNCATE TABLE ', TABLE_NAME)
FROM
    INFORMATION_SCHEMA.TABLES
WHERE
    table_schema = 'db_name';
Source by tableplus.com #
 
PREVIOUS NEXT
Tagged: #truncate #table #mysql #workbench
ADD COMMENT
Topic
Name
1+9 =