Boolean to Integer?

Поиск
Список
Период
Сортировка
От Roberto (SmartBit)
Тема Boolean to Integer?
Дата
Msg-id 004001c275ff$344850e0$1501a8c0@NoteBook
обсуждение исходный текст
Ответы Re: Boolean to Integer?
Список pgsql-general
Hi all

How could i transform a Boolean value in a Integer???

My table field is Boolean, but I'd like that my SELECT reults an Integer
field!!

something like: SELECT  IF( FieldBoolName , 1, 0) FROM myTABLE


tia


Roberto de Amorim - +55 48 346-2243
Software engineer at SmartBit Software
Delphi and Interbase consultant


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

Предыдущее
От: Shane Wright
Дата:
Сообщение: Re: PostgreSQL query failed: COPY state must be terminated first
Следующее
От: Philip Hallstrom
Дата:
Сообщение: Re: Boolean to Integer?