Re: int1? - Mailing list pgsql-general

From Joe Conway
Subject Re: int1?
Date
Msg-id 3F85C6B5.7000604@joeconway.com
Whole thread Raw
In response to Re: int1?  (Ron Johnson <ron.l.johnson@cox.net>)
List pgsql-general
Ron Johnson wrote:
> On Thu, 2003-10-09 at 02:16, CSN wrote:
>
>>Is there any date type that can be used for 0-255
>>values? Like an "int1" or byte column.
>
> An int2 with a constraint on it.
>

You can use the data type "char" (with the quotes, and without a (n)
decoration). See:
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=datatype-character.html
near the bottom of the page.

Joe


pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Domains (was Re: int1?)
Next
From: Patrick Welche
Date:
Subject: Re: autoupdate sequences after copy