Re: What does count(*) count?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What does count(*) count?
Дата
Msg-id 11071.1072890310@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: What does count(*) count?  (Együd Csaba <csegyud@vnet.hu>)
Ответы Re: What does count(*) count?
Список pgsql-general
=?iso-8859-1?Q?Egy=FCd_Csaba?= <csegyud@vnet.hu> writes:
> I've got it, but I don't know the reason of it.
> In the database table the records have duplicated and I've two rows for
> every primary key - with different OIDs.

Sure sounds like a child table to me.

> Is there any safe method to get rid of only one of each duplicated row?

Drop the child table.

            regards, tom lane

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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: What does count(*) count?
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Is my MySQL Gaining ?