IF...THEN...ELSE on INSERT

Поиск
Список
Период
Сортировка
От Vincent AE Scott
Тема IF...THEN...ELSE on INSERT
Дата
Msg-id 20011207113406.A24282@majestic.ukshells.co.uk
обсуждение исходный текст
Ответы Re: IF...THEN...ELSE on INSERT  (Andrew McMillan <andrew@catalyst.net.nz>)
Список pgsql-novice
What's the fastest / most effecient way todo a test on an insert
operation and then change the SQL that gets exeuted?

Specifically, i want to check if a row already exists, and then instead
of inserting the row, just increment a counter for that row.

your TIA,
-vince

--

PGP key:  http://codex.net/pgp/pgp.asc

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

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: Storing number '001' ?
Следующее
От: Andrew McMillan
Дата:
Сообщение: Re: IF...THEN...ELSE on INSERT