Created
October 28, 2013 16:39
-
-
Save axe312ger/7200243 to your computer and use it in GitHub Desktop.
Get all sql tables who contain a specific column.
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 DISTINCT TABLE_NAME | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE COLUMN_NAME IN ('COLUMN_NAME') | |
AND TABLE_SCHEMA = 'TABLE_NAME'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be used to convert all language neutral content to the default language in drupal.
"Update TABLE_NAME SET language = 'en' WHERE language = 'und';"