Re: selecting tables and columns

From: "Loftis, Charles E" <charles(dot)loftis(at)eds(dot)com>
To: "'Robert Morgan'" <robert_(at)ihug(dot)co(dot)nz>
Cc: postgres <pgsql-novice(at)postgresql(dot)org>
Subject: Re: selecting tables and columns
Date: 2004-06-08 13:06:56
Message-ID: 25DC89BACF65D549BA045B806348C65E01AAF681@ushem201.exse01.exch.eds.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Bob,
Use "\d"...

Take a look at the help using the \? from the postgres prompt...

:
:
Informational
\d [NAME] describe table, index, sequence, or view
\d{t|i|s|v|S} [PATTERN] (add "+" for more detail)
list tables/indexes/sequences/views/system tables
:
:

-----Original Message-----
From: pgsql-novice-owner(at)postgresql(dot)org
[mailto:pgsql-novice-owner(at)postgresql(dot)org] On Behalf Of Robert Morgan
Sent: Monday, June 07, 2004 8:37 PM
To: postgres
Subject: [NOVICE] selecting tables and columns

Hi does postgresql have a similar command to SHOW in MySQL.
I want to select all tables that match a criteria then select all columns.
from those tables.

in MySQL: "SHOW tables like 'stu%'";
"SHOW columns from ".$tbl." ";
using php variable

thanks
Bob

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Browse pgsql-novice by date

  From Date Subject
Next Message Loftis, Charles E 2004-06-08 19:08:11 Built-in functions - does an obect exist...
Previous Message Scott Marlowe 2004-06-08 05:06:49 Re: selecting tables and columns