One Man's Notes

Thursday, April 7, 2016

Postgres getting the description of a table, specifically column names

Do this:

SELECT column_name, data_type FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'table_name_goes_here';
Posted by Solx at 9:02 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: postgreSQL

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Links

  • Crusader Kings How To

Labels

.NET ant antrun apt AWS batch-windows bean c++ Chrome cmd cygwin debugging-native docker dynamodb FAQ fiddler Hibernate http http-debugging IIS Intellij-IDEA java jvm Linux Linux-installer linux-setup maven networking node.js postgreSQL python S3 socat spring SQL-Server ssh trick Ubuntu Ubuntu-installer vi vim VirtualBox Windows Windows-Administration

About Me

Solx
View my complete profile

Blog Archive

  • ►  2017 (14)
    • ►  December (1)
    • ►  October (1)
    • ►  September (1)
    • ►  June (3)
    • ►  April (1)
    • ►  March (5)
    • ►  February (1)
    • ►  January (1)
  • ▼  2016 (21)
    • ►  November (1)
    • ►  October (1)
    • ►  June (1)
    • ►  May (2)
    • ▼  April (3)
      • Maven maven-antrun-plugin run executions in variou...
      • Disable Windows Maintenance on in a VM
      • Postgres getting the description of a table, speci...
    • ►  March (3)
    • ►  February (4)
    • ►  January (6)
  • ►  2015 (30)
    • ►  December (2)
    • ►  October (1)
    • ►  September (4)
    • ►  August (23)
Ethereal theme. Powered by Blogger.