Re: Retype

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Retype
Дата
Msg-id 200306100820.44251.dev@archonet.com
обсуждение исходный текст
Ответ на Retype  (Rado Petrik <r.p@szm.sk>)
Список pgsql-sql
On Monday 09 Jun 2003 10:24 am, Rado Petrik wrote:
> I have query  " SELECT id_user FROM user WHERE (freg_u & 2 ) > 0 ".
>
> freg_u is type smallint.

> How I retype freg_u to interger ?
... WHERE (freg_u::integer & 2) ...

Or you could use the more standard but long-winded CAST function

--  Richard Huxton


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

Предыдущее
От: Alexey Dashevsky
Дата:
Сообщение: left join in cursor
Следующее
От: Achilleus Mantzios
Дата:
Сообщение: Re: how to determine array size