select concat('delete from ',table_name,';') from information_schema.tables where table_schema='jd_project_sector_test1'  and Table_type='BASE TABLE'

 

其中jd_project_sector_test1为数据库名

posted on 2020-11-16 10:05  田坤坤  阅读(186)  评论(0编辑  收藏  举报