Created
February 20, 2015 20:08
-
-
Save dpdexter/164803d46d7b495f87c2 to your computer and use it in GitHub Desktop.
show table field names
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`='yourdbname' | |
AND `TABLE_NAME`='yourtablename'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment