Skip site navigation (1) Skip section navigation (2)

Describe command alternatives in postgresql

From: Vaduvoiu Tiberiu <vaduvoiutibi(at)yahoo(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Describe command alternatives in postgresql
Date: 2010-11-06 09:37:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

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.


pgsql-novice by date

Next:From: Vaduvoiu TiberiuDate: 2010-11-06 10:00:00
Subject: Re: Describe command alternatives in postgresql
Previous:From: AndreasDate: 2010-11-06 04:40:19
Subject: Re: Data Types

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group