Re: unsigned int4

From: Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE>
To: Scott(dot)Jackson(at)pnl(dot)gov
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: unsigned int4
Date: 2000-04-04 10:27:36
Message-ID: Pine.GSO.4.02A.10004041226260.6042-100000@Utter.DoCS.UU.SE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 3 Apr 2000, Scott M Jackson wrote:

> Is there a way to specify an unsigned int, such that it would create
> an ERROR condition if a transaction were to attempt to cause a
> particular value to go negative.

CREATE TABLE... (
...
colname INTEGER CHECK (colname > 0)
...
);

--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-04-04 10:30:26 Re: The "nl" RPMs.
Previous Message Peter Eisentraut 2000-04-04 10:12:55 Re: doing backups