identify Tables without primary keys - postgres

Поиск
Список
Период
Сортировка
От akp geek
Тема identify Tables without primary keys - postgres
Дата
Msg-id 2024a9fb1001150839x3a0b259djcb3f0e03ccc207fa@mail.gmail.com
обсуждение исходный текст
Ответы Re: identify Tables without primary keys - postgres  (Rodrigo Gonzalez <rjgonzale@estrads.com.ar>)
Список pgsql-general
Dear all -
 
             I have the following query to find the tables with primary keys. can you please help me finding the tables without primary key.
 
             select
 distinct x.table_name,
from
 information_schema.constraint_column_usage x,
 pg_constraint b
where
 b.contype='p' and
 x.constraint_name=b.conname
 
Regards
 

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

Предыдущее
От: DURAND Benoît
Дата:
Сообщение: Tablespace creation
Следующее
От: Rodrigo Gonzalez
Дата:
Сообщение: Re: identify Tables without primary keys - postgres