pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: greg@turnstep.com
To: pgsql-sql@postgresql.org
Subject: Re: Delete 1 Record of 2 Duplicate Records
Date: Thu, 30 Jan 2003 15:04:20 -0000
Message-ID: <07f0833692070125b9317094e7008b4f@biglumber.com> (raw)
In-Reply-To: <20030130115201.D4EB21833A@cheetah.webtribe.net>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


If they are truly identical, then you must use the hidden 'oid' column to 
differentiate the two. No need to peek at the oid, just do this:

DELETE FROM test WHERE oid = (SELECT oid FROM test WHERE column_id=5 LIMIT 1);

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200301301006

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+OT+AvJuQZxSWSsgRAgZOAKCrwW2O/bQpxo5LBBp4vDkS8YoZ9wCg2H7N
R9R4CTSXx/lRmjm5NvZkYXE=
=VI0G
-----END PGP SIGNATURE-----




view thread (4+ messages)  latest in thread

Message-ID: <07f0833692070125b9317094e7008b4f@biglumber.com>
Permalink:  ../07f0833692070125b9317094e7008b4f@biglumber.com/
Also on:    postgresql.org/message-id/07f0833692070125b9317094e7008b4f@biglumber.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: greg@turnstep.com
  Subject: Re: Delete 1 Record of 2 Duplicate Records
  In-Reply-To: <07f0833692070125b9317094e7008b4f@biglumber.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox