题解 | #删除表#
删除表
https://www.nowcoder.com/practice/df2f634a53324bbd9369fe6723fedc49
drop table if exists exam_record_2011,exam_record_2012,exam_record_2013,exam_record_2014;
直接这样明了地枚举出需要删除的表;
有想过利用存储过程和while...do实现循环删除,但是在变量放到drop被删除的表名部分时总会出问题。(希望有大佬能写出来然后踢我一下嘿嘿)