Created
May 28, 2018 17:29
-
-
Save mfrata/2c27222c965875d291dbb9634066ff65 to your computer and use it in GitHub Desktop.
Table columns names and data type
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 column_name, data_type | |
FROM information_schema.columns | |
WHERE table_schema = 'your_schema' | |
AND table_name = 'your_table' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment