>>>>> "d" == drevil  <[EMAIL PROTECTED]> writes:

d> way to check for this condition before I do the addition?  Is there a
d> way to put a constraint on a variable, such that it's always positive?

I have bunches of these:

  pid integer CHECK (pid >= 0),

They work great.  Your update will return failure so you'll only find
out after the fact, but the table will not have been updated in any
case.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: [EMAIL PROTECTED]       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to