RE: INSERT [IGNORE] INTO TABLE

Поиск
Список
Период
Сортировка
От Edmar Wiggers
Тема RE: INSERT [IGNORE] INTO TABLE
Дата
Msg-id NEBBIAKDCDHFGJMLHCKIOEMNCAAA.edmar@brasmap.com
обсуждение исходный текст
Ответ на INSERT [IGNORE] INTO TABLE  (Petr Jezek <jez20um@axpsu.fpf.slu.cz>)
Ответы RE: INSERT [IGNORE] INTO TABLE  (Petr Jezek <jez20um@axpsu.fpf.slu.cz>)
Список pgsql-sql
>     If I try to insert some row which in the table already exist the
>     postgre don't insert it and tell some error. Everything ok.
>     I'll insert only if there is not the same (same key) record,
>     else don't insert and don't tell me errors about it.
>     In MySQL is a switch [IGNORE].

Not a good feature for me. What do you do if the record already exists?
Update it?

Check existence and then insert or update. If you want, I guess you could
wrap that inside a stored procedure.



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

Предыдущее
От: Kovacs Zoltan Sandor
Дата:
Сообщение: Re: Need info: pl/pgsql performance
Следующее
От: Petr Jezek
Дата:
Сообщение: RE: INSERT [IGNORE] INTO TABLE