Skip to content

Instantly share code, notes, and snippets.

@aabril
Created February 2, 2012 12:57
Show Gist options
  • Select an option

  • Save aabril/1723344 to your computer and use it in GitHub Desktop.

Select an option

Save aabril/1723344 to your computer and use it in GitHub Desktop.
Find on a mysql database, a column named column_name
SELECT TABLE_NAME, COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE column_name LIKE '%column_name%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment