Re: compare two rows

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: compare two rows
Дата
Msg-id 4CB49B3402000025000368C0@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: compare two rows  (Ben Kim <bkim@tamu.edu>)
Ответы Re: compare two rows  (Ben Kim <bkim@tamu.edu>)
Список pgsql-admin
Ben Kim <bkim@tamu.edu> wrote:

> create table test_dup (id serial primary key, val text);

> How can I check whether the two rows are the same or different?

Well, with a primary key in there, they had *better* be different.

It would seem you want to see if some *subset* of the columns in two
rows match?  All columns except those in the primary key?

The next question is whether you want to just compare two specific
rows or list all duplicates.

-Kevin

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

Предыдущее
От: Richard Broersma
Дата:
Сообщение: Re: compare two rows
Следующее
От: Ben Kim
Дата:
Сообщение: Re: compare two rows