SELECT CONCAT( 'truncate TABLE ', table_schema, '.', TABLE_NAME, ';' ) FROM INFORMATION_SCHEMA.TABLES WHERE table_schema IN ( 'db_name' );
posted on 2024-01-31 18:36 长不大的菜鸟 阅读(12) 评论(0) 编辑 收藏 举报