@echo off

if not exist E:\runcate_db.sql more +5 %0>E:\runcate_db.sql 

echo >nul

mysql -h localhost -uroot -p123456 数据库名 < E:\runcate_db.sql 

goto :eof

truncate table tab1;

truncate table tab2;