Re: Decimal vs.Numeric vs. Int & type for OID

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Decimal vs.Numeric vs. Int & type for OID
Дата
Msg-id Pine.LNX.4.30.0012132123090.1277-100000@peter.localdomain
обсуждение исходный текст
Ответ на Decimal vs.Numeric vs. Int & type for OID  ("Nikhil G. Daddikar" <ngd@iname.com>)
Список pgsql-sql
Nikhil G. Daddikar writes:

> It is unclear to me what the real difference is and when to use what.
> Any pointers would be greatly appreaciated.

Integers are integers (uh...)

Numeric is for exact fixed-point decimal numbers.  Monetary amounts are a
good example.  Decimal is equivalent to numeric.

The oid type should only be used as a foreign key to an oid column.

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



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

Предыдущее
От: Borek Lupoměský
Дата:
Сообщение: Re: SQL parse error
Следующее
От: "Joel Burton"
Дата:
Сообщение: Re: Selecting Most Recent Row