Created
October 27, 2015 17:16
-
-
Save MattSandy/ff707838b6ce83b6549d to your computer and use it in GitHub Desktop.
Grab all columns from rows matching prefix.
This file contains hidden or 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`,`COLUMN_NAME` | |
FROM `INFORMATION_SCHEMA`.`COLUMNS` | |
WHERE `TABLE_SCHEMA`='wordpress' | |
AND `TABLE_NAME` LIKE 'wp_%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment