Re: [ADMIN] simple questions

Поиск
Список
Период
Сортировка
От Brian Horan
Тема Re: [ADMIN] simple questions
Дата
Msg-id 3A3A92B4.5963BF39@herald.com
обсуждение исходный текст
Ответ на simple questions  (Niral Trivedi <niral.trivedi@insage.com>)
Список pgsql-general
Niral Trivedi wrote:
>
> All,
>
> I have very simple two questions..
>
> How can we 'describe a table' and 'view all available tables' in postgres
> DB??
>
> I am looking for something similar to 'desc <TABLE>' and 'show tables' in
> MySQL or
> 'desc <TABLE>' and 'select * from tab' in Oracle..
>
> Thanks in advance for your help..
>
> Niral

easily.

psql#> \d table_name
for a specific table

psql#> \d
for all tables

and \? for other useful stuff with backslashes.
--
     ,~,
      v     Brian Horan
    /(|)\   Systems Analyst/Programmer
   /( | )\  Miami Herald Publishing Company
  //( | )\\ bhoran@herald.com     cell: (954) 296-7807
-----"-"-----------------------------------------

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

Предыдущее
От: "Brett W. McCoy"
Дата:
Сообщение: Whoohoo!
Следующее
От: Jie Liang
Дата:
Сообщение: Re: [ADMIN] simple questions