Re: single byte unsigned integer datatype

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: single byte unsigned integer datatype
Дата
Msg-id Pine.LNX.4.30.0101141648030.977-100000@peter.localdomain
обсуждение исходный текст
Ответ на single byte unsigned integer datatype  ("Joe Conway" <jconway2@home.com>)
Список pgsql-sql
Joe Conway writes:

> I was looking for a datatype to represent a single byte unsigned integer.
> The closest thing I can find looking through the online manual is a one byte
> char. Are there any side-effects of using a char datatype for this purpose?

Yes, it won't store single byte unsigned integers, only single byte signed
characters.

> Is there a better datatype to use?

smallint with a check constraint

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Sharmad Naik"
Дата:
Сообщение: importing of ISO file to Postgresql
Следующее
От: Max Pyziur
Дата:
Сообщение: Re: importing of ISO file to Postgresql