Created
January 31, 2014 20:37
-
-
Save thebouv/8742647 to your computer and use it in GitHub Desktop.
Return list of column names as a commas separated list
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 GROUP_CONCAT( COLUMN_NAME ) | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_NAME = 'my_table'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment