From: Roland Roberts <roland@astrofoto.org>
To: pgsql-sql@postgresql.org
Subject: Re: PL/pgSQL examples NOT involving functions
Date: 18 Nov 2001 23:00:07 -0500
Message-ID: <m2lmh3jtq0.fsf@kuiper.rlent.pnet> (raw)
In-Reply-To: <web-507249@davinci.ethosmedia.com>
References: <web-507249@davinci.ethosmedia.com>
>>>>> "Josh" == Josh Berkus <josh@agliodbs.com> writes:
Josh> Personally, I find that keeping track, on the client side,
Josh> of whether you're adding a new record or editing an old one
Josh> and acting appropriately is better than trying to
Josh> second-guess it on the database level, but maybe that's just
Josh> me.
Well, that's basically what I'm trying to do. But finding out whether
I need to insert or update requires doing something like my pseudo-SQL
example. I was just trying to figure out if I could do in in SQL
pl/pgSQL.
roland
--
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland@rlenter.com 76-15 113th Street, Apt 3B
roland@astrofoto.org Forest Hills, NY 11375
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: roland@astrofoto.org, pgsql-sql@postgresql.org
Subject: Re: PL/pgSQL examples NOT involving functions
In-Reply-To: <m2lmh3jtq0.fsf@kuiper.rlent.pnet>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox