Created
October 19, 2025 01:53
-
-
Save ppazos/2bfc1be109f0097dad212b3a0678e3bc to your computer and use it in GitHub Desktop.
Get columns with a specific type from mysql
This file contains hidden or 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 | |
| TABLE_SCHEMA, | |
| TABLE_NAME, | |
| COLUMN_NAME, | |
| DATA_TYPE | |
| FROM | |
| INFORMATION_SCHEMA.COLUMNS | |
| WHERE | |
| DATA_TYPE = 'datetime' AND TABLE_SCHEMA = 'atomik' | |
| ORDER BY | |
| TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment