如何在mysql中drop多个连续的表

怎么在mysql中drop多个连续的表?

要移除(drop)下面类似格式的表:

RecordMst20120101

RecordMst20120102

RecordMst20120103

RecordMst20120104

RecordMst20120105

RecordMst20120106

RecordMst20120107

RecordMst20120108

RecordMst20120109

RecordMst20120110

写sql语句删,手动一个一个删的就没有必要了~




drop table RecordMst20120101

这句放在excel里面 然后拉住往下拽

或者

select concat(‘drop table ‘,table_name,’;’) from information_schema.tables where table_name like ‘RecordMst2012%’

结果集合粘出来放入notepad ctrl+H替换| 然后执行




sqlyog:

call spname

如何在mysql中drop多个连续的表

相关文章:

你感兴趣的文章:

标签云: