pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Horan <bhoran@herald.com>
To: Niral Trivedi <niral.trivedi@insage.com>
Cc: pgsql-general@postgresql.org, "'pgsql-admin@postgresql.org'" <pgsql-admin@postgresql.org>
Subject: Re: simple questions
Date: Fri, 15 Dec 2000 16:52:52 -0500
Message-ID: <3A3A92B4.5963BF39@herald.com> (raw)
References: <328DC4EC2C9B74428D8DAED1931285BF10D95D@FLAN-EXCH01.corp.insage.com>

Niral Trivedi wrote:
> 
> All,
> 
> I have very simple two questions..
> 
> How can we 'describe a table' and 'view all available tables' in postgres
> DB??
> 
> I am looking for something similar to 'desc <TABLE>' and 'show tables' in
> MySQL or
> 'desc <TABLE>' and 'select * from tab' in Oracle..
> 
> Thanks in advance for your help..
> 
> Niral

easily.

psql#> \d table_name
for a specific table

psql#> \d
for all tables

and \? for other useful stuff with backslashes.
-- 
     ,~,
      v     Brian Horan
    /(|)\   Systems Analyst/Programmer
   /( | )\  Miami Herald Publishing Company
  //( | )\\ bhoran@herald.com     cell: (954) 296-7807
-----"-"-----------------------------------------



view thread (7+ messages)  latest in thread

Message-ID: <3A3A92B4.5963BF39@herald.com>
Permalink:  ../3A3A92B4.5963BF39@herald.com/
Also on:    postgresql.org/message-id/3A3A92B4.5963BF39@herald.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bhoran@herald.com, niral.trivedi@insage.com
  Subject: Re: simple questions
  In-Reply-To: <3A3A92B4.5963BF39@herald.com>
  References: <328DC4EC2C9B74428D8DAED1931285BF10D95D@FLAN-EXCH01.corp.insage.com> <3A3A92B4.5963BF39@herald.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox