Re: Querying constraints?

Поиск
Список
Период
Сортировка
От Chris Mair
Тема Re: Querying constraints?
Дата
Msg-id 1155238077.5893.52.camel@dell.home.lan
обсуждение исходный текст
Ответ на Re: Querying constraints?  (Chris Mair <chrisnospam@1006.org>)
Список pgsql-sql
> Curiously enough, I just answered a similar question on the pgsql-admin
> list. Try this:
> 
> SELECT c.relname as table, r.conname as contraint_name, r.contype as
> contraint_type, pg_catalog.pg_get_constraintdef(r.oid, true) as
> constraint_definition FROM pg_catalog.pg_constraint r,
> pg_catalog.pg_class c WHERE c.oid = r.conrelid;

I forgot to mention, it's tested on 8.1...

Bye, Chris.

-- 

Chris Mair
http://www.1006.org




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

Предыдущее
От: Chris Mair
Дата:
Сообщение: Re: Querying constraints?
Следующее
От: "Shoaib Mir"
Дата:
Сообщение: Re: Change of data type