Created
March 14, 2013 11:34
-
-
Save madeingnecca/5160671 to your computer and use it in GitHub Desktop.
MYSQL - list columns of 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,column_type | |
FROM information_schema.columns | |
WHERE table_schema = DATABASE() | |
AND table_name='table' | |
ORDER BY ordinal_position; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment