| From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Deleting one of 2 identical records |
| Date: | 2011-09-06 17:57:35 |
| Message-ID: | 20110906175735.GA18140@tux |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com> wrote:
> Hi:
>
>
>
> If I have a table that has 2 records which are identical with regard to all
> their column values, is there a way to delete one of them, leaving one
> remaining? Is there some unique record_id key of some sort I can use for
> somethign like this?
Yes, use the CTID-column.
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gauthier, Dave | 2011-09-06 18:00:12 | Re: Deleting one of 2 identical records |
| Previous Message | Andy Colson | 2011-09-06 17:54:45 | Re: Deleting one of 2 identical records |