Re: Copy Data Question

Поиск
Список
Период
Сортировка
От baa@brucealderman.info
Тема Re: Copy Data Question
Дата
Msg-id 20060623102756.4faf1f2cdfde98ff7024e0f6158a39e4.16c853b673.wbe@email.secureserver.net
обсуждение исходный текст
Ответ на Copy Data Question  (<operationsengineer1@yahoo.com>)
Список pgsql-novice
<BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT:
blue 2px solid" name="wmMessageComp">
> 3. select into destinationtable from temptable where>
temptable.primarykey not exists> ( select
destinationtable.primarykey>    from destination
table> );  Richard, thanks.  in my case, the
primary key isn'trelevant, however, the product_number is (it
isunique).  iiuc, in my case i should use
product_numberinstead of primarykey.it makes sense - thanks
for the enlightenment.
(slightly off topic) You might consider changing
your table structure so product_number is your primary key, if it always
unique. That way you don't need an additional primary key field. Just a
suggestion.
 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Copy Data Question
Следующее
От:
Дата:
Сообщение: Re: Copy Data Question