Re: abs() does not exists..

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: mazzo <jambo(at)aruba(dot)it>, pgsql-general(at)postgresql(dot)org
Subject: Re: abs() does not exists..
Date: 2001-06-13 14:45:46
Message-ID: 20010613094546.A21307@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 13, 2001 at 12:11:42AM +0200,
Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> mazzo writes:
>
> > Hi all..i'm trying to create a trigger that fires before i insert a value into a column and if the value i insert is negative, it will change it to positive...

Couldn't you do this using a rule to update the table and a constraint on
the table to prevent bad data from getting into the table without using the
rule?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-06-13 14:47:29 Re: Re: Does PostgreSQL support EXISTS?
Previous Message C. R. Oldham 2001-06-13 14:43:03 pg_dump problem