Last active
May 15, 2020 17:41
-
-
Save wldomiciano/0799ee4c8e29b2c3dd4eb3f053597e20 to your computer and use it in GitHub Desktop.
Lista todas as tabelas que contenham colunas com um certo nome em um banco de dados em MySQL
This file contains 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 = 'your_column_name' | |
AND TABLE_SCHEMA = 'your_database_name'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment