清空数据库内的所有表数据
摘要:SELECT CONCAT( 'truncate TABLE ', table_schema, '.', TABLE_NAME, ';' ) FROM INFORMATION_SCHEMA.TABLES WHERE table_schema IN ( 'db_name' );
阅读全文
posted @ 2024-01-31 18:36
posted @ 2024-01-31 18:36
posted @ 2024-01-31 18:33