Re: How to Get Column Names from the Table

From: Jayadevan M <Jayadevan(dot)Maymala(at)ibsplc(dot)com>
To: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: How to Get Column Names from the Table
Date: 2010-07-07 09:29:46
Message-ID: OF1CD955D6.D0B82E71-ON65257759.003395BB-65257759.00342C0B@ibsplc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

> 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."

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Denis Gasparin 2010-07-07 09:32:53 Odd behaviour in update rule
Previous Message venkat 2010-07-07 09:17:27 Re: How to Get Column Names from the Table

Browse pgsql-sql by date

  From Date Subject
Next Message Sreelatha G 2010-07-07 10:12:23 Re: [SQL] How to Get Column Names from the Table
Previous Message venkat 2010-07-07 09:17:27 Re: How to Get Column Names from the Table