SELECT
table_name,
ordinal_position
FROM INFORMATION_SCHEMA.COLUMNS
WHERE
table_schema = 'DB_NAME' AND
column_name='column_name';
Last active
May 9, 2019 15:26
-
-
Save juyal-ahmed/8823fd88f4f774ce1c7fc812c5490877 to your computer and use it in GitHub Desktop.
Search for a specific column name in all the tables in MySQL database?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment