I need to delete all tables that were created today. I do not know what are the tables., because the process is autogenerated by a framework.
This is possible by querying information_schema? any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get all tables created today by using
The
NOT IN("information_schema", "mysql", "performance_schema")excludes (temporary) system tables created by msql itself. It’s best to limit TABLE_SCHEMA to whatever database name you are using, if you don’t need to delete tables among different databases.How you delete them is now up to you ;).