Created
March 6, 2018 02:54
-
-
Save jfriv/73593d8ac09821362eabfc7a6c8f0d2c to your computer and use it in GitHub Desktop.
MySQL select all column names for a table
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 COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_SCHEMA = 'mydatabase' AND TABLE_NAME = 'mytable' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment