Re: Recommended Protocol: Adding Rows to Table

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Recommended Protocol: Adding Rows to Table
Дата
Msg-id alpine.LNX.2.00.1111251207330.15652@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Recommended Protocol: Adding Rows to Table  (Scott Mead <scottm@openscg.com>)
Список pgsql-general
On Fri, 25 Nov 2011, Scott Mead wrote:

> Why don't you first load the data into a table (no primary key), then use
> SQL to find your dups?
>
> once loaded:
>  SELECT <primary_key_column>, count(1) from <table> group by 1 having
> count(1) > 1;
>
> At least then, you'll really know what you're in for.  You can either
> script a DELETE or... whatever you want to do, once clean, you can add the
> PK.

Scott,

   I'll do this. First I need to find why 2 rows (of 143260) are not in the
table after reading the source file. I have those 2 rows somewhat isolated
as one's in the third quarter of the file and one in the fourth quarter.

Thanks,

Rich


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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: .dmp files in postgresql
Следующее
От: Alpha Beta
Дата:
Сообщение: Re: .dmp files in postgresql