Re: question on SELECT - Mailing list pgsql-sql

From kumar1@home.com (Prasanth A. Kumar)
Subject Re: question on SELECT
Date
Msg-id m38zpcde32.fsf@C654771-a.frmt1.sfba.home.com
Whole thread Raw
In response to question on SELECT  (Howard Hiew <howard@cim.mastec.com.sg>)
Responses Re: question on SELECT  (Jie Liang <jliang@jliang.ipinc.com>)
List pgsql-sql
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. DoSELECT tablename FROM pg_tables where
tableowner='postgres';

-- 
Prasanth Kumar
kumar1@home.com


pgsql-sql by date:

Previous
From: Jie Liang
Date:
Subject: Re: Problem with function...
Next
From: Tulassay Zsolt
Date:
Subject: Re: Tree structure table normalization problem (do I need a trigger?)