Created
May 19, 2015 17:36
-
-
Save cornelisonc/c6c716889b6d0708fd81 to your computer and use it in GitHub Desktop.
MySQL show table names like or not like prefix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT table_name | |
FROM information_schema.tables | |
WHERE table_schema = 'databasename' | |
AND table_name LIKE 'prefix%'; | |
SELECT table_name | |
FROM information_schema.tables | |
WHERE table_schema = 'databasename' | |
AND table_name NOT LIKE 'prefix%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment