Re: accessing user table structures from SQL

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: accessing user table structures from SQL
Дата
Msg-id dcc563d10901162340g5a757474yb1754159d5e341f2@mail.gmail.com
обсуждение исходный текст
Ответ на accessing user table structures from SQL  (Vincent Predoehl <vpredoehl@phoenixwebgroup.com>)
Список pgsql-general
On Fri, Jan 16, 2009 at 9:32 PM, Vincent Predoehl
<vpredoehl@phoenixwebgroup.com> wrote:
> Does postgresql have a system table that has the table structure of user
> tables, like systables and sysobjects in MS SQL Server?

There's the pg_* views and tables that have all of that, and to see
how they work, you can run psql -E and then any \ command you issue
you'll get to see the SQL for.

OR you can look at the information_schema which is a SQL standard but
I think there are some pg relationships it can't show.

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

Предыдущее
От: Faheem Mitha
Дата:
Сообщение: array_agg for 8.3
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Trigger to clone across databases?