Describe command alternatives in postgresql

Поиск
Список
Период
Сортировка
От Vaduvoiu Tiberiu
Тема Describe command alternatives in postgresql
Дата
Msg-id 215452.84858.qm@web51301.mail.re2.yahoo.com
обсуждение исходный текст
Список pgsql-novice
Hello,

this is my first post on this list. I'm trying to migrate my application's database from MySql to Postgresql. One of the main problem I'm facing, is trying to find an alternative for the "Describe" command. In MySql you can call "Describe XX" where xx can be the name of the table/view in your database. In Postgresql I can call "select * from INFORMATION_SCHEMA.COLUMNS where table_name = XX". This works, except I also have a lot of views in my database, for which Describe worked ok in mysql. But in Postgresql it seems I can't find a command that would work both on views and tables. Does anyone know an equivalent function or a workaround for this?

Thank you in advance.
Cheers

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

Предыдущее
От: Andreas
Дата:
Сообщение: Re: Data Types
Следующее
От: Vaduvoiu Tiberiu
Дата:
Сообщение: Re: Describe command alternatives in postgresql