Re: Returning String as Integer

Поиск
Список
Период
Сортировка
От Markus Schaber
Тема Re: Returning String as Integer
Дата
Msg-id 445DB254.5060606@logix-tt.com
обсуждение исходный текст
Ответ на Re: Returning String as Integer  ("Ben K." <bkim@coe.tamu.edu>)
Список pgsql-sql
Hi, Ben,

Ben K. schrieb:
> I tried int8(id) but java didn't take it as Integer. (It took int8 as
> something like Long.)

Yes, and that's good, as PostgreSQL int8 and java long actually are the
same datatype (64-bit signed two's-complement).

PostgreSQL int4 and Java int are the same (32-bit), as well as int2 and
short.

HTH,
Markus


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

Предыдущее
От: PFC
Дата:
Сообщение: Re: Most efficient way to hard-sort records
Следующее
От: "Ben K."
Дата:
Сообщение: Re: Most efficient way to hard-sort records