Skip to content

Instantly share code, notes, and snippets.

@axe312ger
Created October 28, 2013 16:39
Show Gist options
  • Select an option

  • Save axe312ger/7200243 to your computer and use it in GitHub Desktop.

Select an option

Save axe312ger/7200243 to your computer and use it in GitHub Desktop.
Get all sql tables who contain a specific column.
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('COLUMN_NAME')
AND TABLE_SCHEMA = 'TABLE_NAME';
@axe312ger

Copy link
Copy Markdown
Author

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';"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment