How Can I truncate Multiple Tables in MySql?
- by Luiscencio
I need to clear all my inventory tables.
I've tryed
SELECT 'TRUNCATE TABLE ' + TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME LIKE 'inventory%'
but I get this error:
Truncated incorrect DOUBLE value: 'TRUNCATE TABLE ' Error Code 1292
if this is the correct way, then what am I doing wrong?