Re: INSERT ON DUPLICATE KEY UPDATE
| От | Eduardo Pérez Ureta |
|---|---|
| Тема | Re: INSERT ON DUPLICATE KEY UPDATE |
| Дата | |
| Msg-id | 20040618203621.GA8023@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: INSERT ON DUPLICATE KEY UPDATE (Richard Huxton <dev@archonet.com>) |
| Ответы |
Re: INSERT ON DUPLICATE KEY UPDATE
|
| Список | pgsql-general |
On 2004-06-18 18:02:18 UTC, Richard Huxton wrote: > Out of curiosity, why don't you know whether you're inserting or > updating? It always worries me when I don't know what my application is > doing. This is the example: I'm downloading a list of products from the web and they already have a product_id (that's the primary key), in my table I have many fields that I use myself like comments, stock, ... But when downloading the list I only have the product_id, the product name, the price and the remote stock. So I must insert data like the remote stock without removing any of my data and leaving all the other columns unmodified.
В списке pgsql-general по дате отправления: