Обсуждение: Re: Finding column using SQL query.

Поиск
Список
Период
Сортировка

Re: Finding column using SQL query.

От
Дата:
Take a look at the system catalogs:

http://www.postgresql.org/docs/8.0/interactive/catalogs.html

HTH



Rajan Bhide <rbhide@starentnetworks.com> schrieb am 09.02.2005,
10:56:20:
> Hi,
>
> Is there any way to find whether a particular column exists in the table
> or not based on the column name using sql query?
> I have a requirement where I need to find whether a column exists in the
> table or not using SQL query.
>
> Thanks,
> Rajan
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match