Conditions in PostGres SQL

Поиск
Список
Период
Сортировка
От Stephan Richter
Тема Conditions in PostGres SQL
Дата
Msg-id 4.3.1.0.20000622165052.00aa0200@198.78.130.6
обсуждение исходный текст
Ответы Re: Conditions in PostGres SQL
Список pgsql-general
Hello everyone,

I want to do the following SQL statement:

I want to check whether an entry exists. If it does not exist, add an entry
to the table, otherwise update the existing one:

Pseudo code:

IF entry IN table
      UPDATE entry
ELSE
      ADD entry
FI

Does anyone know how to do that?

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development & Technical Project Management


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

Предыдущее
От: "Robert D. Nelson"
Дата:
Сообщение: RE: PHP Install with Postgres support.
Следующее
От: Ryan Kirkpatrick
Дата:
Сообщение: Re: Sequences do not obey transactions...