Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MySQL show table names like or not like prefix
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
You can’t perform that action at this time.