What would be the corresponding SQL for:
I just want to delete all the tables that have 'test_' as a prefix.Code:DROP TABLES LIKE 'test_%';
The current one does not work. It is a sample only to let you know what I wanted.
| SitePoint Sponsor |


What would be the corresponding SQL for:
I just want to delete all the tables that have 'test_' as a prefix.Code:DROP TABLES LIKE 'test_%';
The current one does not work. It is a sample only to let you know what I wanted.
Bimal Poudel @ Sanjaal Framework » over Smarty Template Engine
ASKING INTERESTING QUESTIONS ON SITEPOINT FOURM
Hire for coding support - PHP/MySQL


run this --copy/paste the output and run thatCode:SELECT CONCAT('DROP TABLE ',table_name,';') FROM information_schema.tables WHERE table_name LIKE 'm%'
Bookmarks