IF...THEN...ELSE on INSERT - Mailing list pgsql-novice

From Vincent AE Scott
Subject IF...THEN...ELSE on INSERT
Date
Msg-id 20011207113406.A24282@majestic.ukshells.co.uk
Whole thread Raw
Responses Re: IF...THEN...ELSE on INSERT
List 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 by date:

Previous
From: Andrew McMillan
Date:
Subject: Re: Storing number '001' ?
Next
From: Andrew McMillan
Date:
Subject: Re: IF...THEN...ELSE on INSERT