Re: [GENERAL] A simple SQL command

Поиск
Список
Период
Сортировка
От omid omoomi
Тема Re: [GENERAL] A simple SQL command
Дата
Msg-id 19991028110840.57549.qmail@hotmail.com
обсуждение исходный текст
Список pgsql-general
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 <e99re41@DoCS.UU.SE>
>Reply-To: Peter Eisentraut <peter_e@gmx.net>
>To: Edouard DESSIOUX <edx@intrinsec.com>
>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

В списке pgsql-general по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [GENERAL] A simple SQL command
Следующее
От: "Yury Don"
Дата:
Сообщение: Re: [GENERAL] A simple SQL command