Re: Delete 1 Record of 2 Duplicate Records

Поиск
Список
Период
Сортировка
От greg@turnstep.com
Тема Re: Delete 1 Record of 2 Duplicate Records
Дата
Msg-id 07f0833692070125b9317094e7008b4f@biglumber.com
обсуждение исходный текст
Ответ на Delete 1 Record of 2 Duplicate Records  (val@webtribe.net)
Ответы Re: Delete 1 Record of 2 Duplicate Records
Список pgsql-sql
-----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-----



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Filter function
Следующее
От: "Tambet Matiisen"
Дата:
Сообщение: Re: Function executing twice