Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Created December 29, 2015 00:28
Show Gist options
  • Save mikedfunk/8120d69bb919b67890e9 to your computer and use it in GitHub Desktop.
Save mikedfunk/8120d69bb919b67890e9 to your computer and use it in GitHub Desktop.
search all tables for matching column names
SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%sku%'
AND TABLE_SCHEMA='zed';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment