Re: compare two rows

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: compare two rows
Дата
Msg-id
4CB49B3402000025000368C0@gw.wicourts.gov
Ответ на
Список
Дерево обсуждения
default console user authentication? George Clark <grclark78@gmail.com>
Re: default console user authentication? "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
compare two rows Ben Kim <bkim@tamu.edu>
Re: compare two rows Tom Lane <tgl@sss.pgh.pa.us>
Re: compare two rows Richard Broersma <richard.broersma@gmail.com>
Re: compare two rows Ben Kim <bkim@tamu.edu>
Re: compare two rows "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: compare two rows Ben Kim <bkim@tamu.edu>
Re: compare two rows Richard Broersma <richard.broersma@gmail.com>
Ben Kim  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
FAQ