From: kumar1@home.com
To: pgsql-sql@postgresql.org
Subject: Re: question on SELECT
Date: 19 Dec 2000 00:12:33 -0800
Message-ID: <m38zpcde32.fsf@C654771-a.frmt1.sfba.home.com> (raw)
References: <75AEDF97D677D411B8D300D0B746D3E0074543@wolf.mastec.com.sg>
Howard Hiew <howard@cim.mastec.com.sg> writes:
> Hi,
> I would like to know what is the sql statement that list all the tables
> name.
>
> For example in Oracle,
> 'SELECT TABLE_NAME from ALL_TABLES where owner="Oracle" ';
>
> What is the statement for Postgres?
> Thank you
>
> Best Regards,
> Howard
> CIM/MASTEC
> Tel:(65)8605283
You can do '\dt' to list all tables. There is also a system table
'pg_tables' which you can use if you like to do a select instead. Do
SELECT tablename FROM pg_tables where tableowner='postgres';
--
Prasanth Kumar
kumar1@home.com
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-sql@postgresql.org
Cc: kumar1@home.com
Subject: Re: question on SELECT
In-Reply-To: <m38zpcde32.fsf@C654771-a.frmt1.sfba.home.com>
References: <75AEDF97D677D411B8D300D0B746D3E0074543@wolf.mastec.com.sg> <m38zpcde32.fsf@C654771-a.frmt1.sfba.home.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