Re: compare two rows - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: compare two rows
Date
Msg-id 4CB49B3402000025000368C0@gw.wicourts.gov
Whole thread Raw
In response to Re: compare two rows  (Ben Kim <bkim@tamu.edu>)
Responses Re: compare two rows
List 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 by date:

Previous
From: Richard Broersma
Date:
Subject: Re: compare two rows
Next
From: Ben Kim
Date:
Subject: Re: compare two rows