Created
September 30, 2017 16:18
-
-
Save henrytran9x/2af188e47fc754e2ce89ab81a245cc70 to your computer and use it in GitHub Desktop.
Query get all information columns of 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, data_type, character_maximum_length, numeric_precision, numeric_scale, is_nullable, column_type, column_default, column_key, extra FROM information_schema.columns WHERE table_name = 'table_name' AND table_schema = 'name_database' ORDER BY ordinal_position |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment