Re: unsigned int4

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: unsigned int4
Дата
Msg-id Pine.GSO.4.02A.10004041226260.6042-100000@Utter.DoCS.UU.SE
обсуждение исходный текст
Ответ на unsigned int4  (Scott M Jackson <scottmo@pnl.gov>)
Список 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@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Create user prob.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: The "nl" RPMs.