How to cast a boolean into an int2 ?

Поиск
Список
Период
Сортировка
От Valerio Santinelli
Тема How to cast a boolean into an int2 ?
Дата
Msg-id 36D4282F.EBABB912@mediacom.it
обсуждение исходный текст
Список pgsql-general
How do I cast a boolean into an int2 ?

I want to do something like:

INSERT INTO test SELECT id, (demo='t') from temp;

but the second field isn't a boolean in the "test" table but an int2.


--

C'ya!

Valerio Santinelli a.k.a. TANiS
[tanis@mediacom.it]+:+[http://www.mediacom.it/~tanis]



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

Предыдущее
От: "Daryl W. Dunbar"
Дата:
Сообщение: RE: [GENERAL] ISP with PostgreSQL
Следующее
От: Todd Graham Lewis
Дата:
Сообщение: Re: [HACKERS] RE: [GENERAL] Transaction logging