Re: some questions

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: some questions
Дата
Msg-id GNELIHDDFBOCMGBFGEFOMEJOCCAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на some questions  (Ang Tun Chek <atchek@eware.com.my>)
Ответы Help on indexes  (Stephane DEWITTE <stephane@smeso.fr>)
Список pgsql-sql
> hi
>     i am new to postresql and i need some help for some sql command
>
>     what is the sql command in postresql equal to "describe table"?
>
>     what is the sql command to list all tables in the database?
>
>    thank you

OK, if you're using psql, you can go '\dt' to see all the tables or '\d
tablename' to see table info, but if you want to query them yourself, you'll
need to query the system catalogs:

http://www.au.postgresql.org/users-lounge/docs/7.2/postgres/catalogs.html

eg. SELECT * FROM pg_tables;

Chris



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

Предыдущее
От: Ang Tun Chek
Дата:
Сообщение: some questions
Следующее
От: Adam Witney
Дата:
Сообщение: Re: some questions