Re: some questions

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Ang Tun Chek" <atchek(at)eware(dot)com(dot)my>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: some questions
Date: 2002-05-15 09:22:23
Message-ID: GNELIHDDFBOCMGBFGEFOMEJOCCAA.chriskl@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> hi
> i am new to postresql and i need some help for some sql command
>
> what is the sql command in postresql equal to "describe table"?
>
> what is the sql command to list all tables in the database?
>
> thank you

OK, if you're using psql, you can go '\dt' to see all the tables or '\d
tablename' to see table info, but if you want to query them yourself, you'll
need to query the system catalogs:

http://www.au.postgresql.org/users-lounge/docs/7.2/postgres/catalogs.html

eg. SELECT * FROM pg_tables;

Chris

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Adam Witney 2002-05-15 09:23:21 Re: some questions
Previous Message Christopher Kings-Lynne 2002-05-15 05:23:04 Re: CHECK CONSTRAINT blunder(s)