Thread: signed/unsigned integers

signed/unsigned integers

From
"Roger Mathis"
Date:
Hi

Is it true, that I can't define unsigned integers in a table definition?

CU Roger





Re: signed/unsigned integers

From
Bruno Wolff III
Date:
On Fri, Aug 23, 2002 at 11:11:51 +0200, Roger Mathis <traderx@gmx.ch> wrote:
> Hi
> 
> Is it true, that I can't define unsigned integers in a table definition?

If the main issue is that there not be negative numbers, you can use a
constraint to enforce this. In 7.3 you can define a domain with the
constraint and use it similar to a type.

If you need 32-63 bits worth of information, then you can use bigint with
some performance penalty. If you need 64 bits or more of information,
then you might be able to use numeric with an even larger performance hit.