Created
December 20, 2019 09:53
-
-
Save Elandlord/fb3b734dd4422faad11e7f42a0655a65 to your computer and use it in GitHub Desktop.
Get the column names of a table with SQL
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 | |
FROM information_schema.columns | |
WHERE table_name = 'table_name' | |
AND table_schema = 'database_name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment