Re: Copy Data Question
От | Richard Broersma Jr |
---|---|
Тема | Re: Copy Data Question |
Дата | |
Msg-id | 20060622211651.48398.qmail@web31815.mail.mud.yahoo.com обсуждение исходный текст |
Ответ на | Copy Data Question (<operationsengineer1@yahoo.com>) |
Ответы |
Re: Copy Data Question
Re: Copy Data Question |
Список | pgsql-novice |
> how can i add *only* nonexisting entries to my db > tables (iow, if it is one of the 100+ there now, i > don't want to mess with it)? I will take a stab at the easy question. Out of test solutions, this is the one that I know. 1. create a temp table using destination table schema using the LIKE clause. http://www.postgresql.org/docs/8.1/interactive/sql-createtable.html 2. import external data into the temp table. 3. select into destinationtable from temptable where temptable.primarykey not exists ( select destinationtable.primarykey from destination table ); > also, how do i update multiple tables with related > info? do i create a view and then copy to the view? > > will that automatically update the tables?
В списке pgsql-novice по дате отправления: