SHOW TABLES NOT LIKE 'wp_2_%'
this sql query is not working for me
SHOW TABLES NOT LIKE 'wp_2_%'
this sql query is not working for me
You can't use not like directly in a show tables statement, but you could put it in a where clause:
SHOW TABLES WHERE tables_in_db NOT LIKE 'wp_2_%';
Yes, and it shouldn't work. SHOW TABLES simply does not allow using NOT like that.