Search Postgresql Archives

Re: How to Get Column Names from the Table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Use:

> \d tablename

And what I really like about it is the way you can make a guess about the 
table name and use * . 

postgres-# \d mt*
      Table "public.mt1"
 Column |  Type   | Modifiers
--------+---------+-----------
 id     | integer |


      Table "public.mt2"
 Column |  Type   | Modifiers
--------+---------+-----------
 id     | integer |


      Table "public.mt3"
 Column |  Type   | Modifiers
--------+---------+-----------
 id     | integer |

Regards,
Jayadevan





DISCLAIMER: 

"The information in this e-mail and any attachment is intended only for 
the person to whom it is addressed and may contain confidential and/or 
privileged material. If you have received this e-mail in error, kindly 
contact the sender and destroy all copies of the original communication. 
IBS makes no warranty, express or implied, nor guarantees the accuracy, 
adequacy or completeness of the information contained in this email or any 
attachment and is not liable for any errors, defects, omissions, viruses 
or for resultant loss or damage, if any, direct or indirect."






-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux