Re: Retrieve columntypes and checks?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Retrieve columntypes and checks?
Дата
Msg-id 20041028173320.GA75259@winnie.fuhr.org
обсуждение исходный текст
Ответ на Retrieve columntypes and checks?  (Jesper Krogh <jesper@krogh.cc>)
Список pgsql-novice
On Thu, Oct 28, 2004 at 10:27:30AM +0000, Jesper Krogh wrote:
>
> In PostgreSQL the enum's are converted to varchar with checks, so I need
> to get a hold on the column-type and if it's a varchar parse the check
> string for values..

Others have suggested that you let the database do the checking for
you.  But if you want to see what the column types and constraints
are, you could query the system catalogs:

http://www.postgresql.org/docs/7.4/static/catalogs.html
http://www.postgresql.org/docs/7.4/static/information-schema.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Retrieve columntypes and checks?
Следующее
От: Aleksandar Dezelin
Дата:
Сообщение: Importing Microsoft Sql Server 2000