Re: [GENERAL] A simple SQL command
Re: [GENERAL] A simple SQL command
От:
"omid omoomi" <oomoomi@hotmail.com>
Дата:
hi,you may also use : select * from pg_tables where owner='somebody' ; and for the table structures you can join some system tables(pg_attribute , pg_class ,pg_type),but \d table_name is a better way. regards, omid omoomi. >From: Peter Eisentraut >Reply-To: Peter Eisentraut >To: Edouard DESSIOUX >CC: pgsql-general@postgreSQL.org >Subject: Re: [GENERAL] A simple SQL command >Date: Thu, 28 Oct 1999 12:21:10 +0200 (MET DST) > >On Wed, 27 Oct 1999, Edouard DESSIOUX wrote: > > > How could i know the name of all the table in my database > > and, if possible, their prototype. > > I would like a SQL command if possible > From within psql, enter \dt. >It's not an SQL command though. > >To look at the "prototype", as you say, enter \d tablename. > >-- >Peter Eisentraut Sernanders vaeg 10:115 >peter_e@gmx.net 75262 Uppsala >http://yi.org/peter-e/ Sweden > > >************ > ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com