Re: mysql replace in postgreSQL?

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: mysql replace in postgreSQL?
Дата
Msg-id 4362DA7E.5000802@commandprompt.com
обсуждение исходный текст
Ответ на mysql replace in postgreSQL?  (blackwater dev <blackwaterdev@gmail.com>)
Список pgsql-general
blackwater dev wrote:

>In MySQL, I can use the replace statement which either updates the
>data there or inserts it.  Is there a comporable syntax to use in
>postgreSQL?
>
>I need to do an insert and don't want to have to worry about if the
>data is already there or not...so don't want to see if it there, if so
>do update if not insert...etc.
>
>
>
Use a trigger.

Sincerely,

Joshua D. Drake


>Thanks.
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: explain analyze is your friend
>
>


--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/


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

Предыдущее
От: Uzo Madujibeya
Дата:
Сообщение: Backup problem...No BIN directory!!!
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Installation trouble