Re: Casting integer to boolean

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Casting integer to boolean
Дата
Msg-id GNELIHDDFBOCMGBFGEFOEELOCDAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Casting integer to boolean  (Tod McQuillin <devin@spamcop.net>)
Список pgsql-sql
> select not count(*) = 0 from my_table;
> 
> Basically, for any integer i, convert to boolean with:  not i = 0

Or i != 0 of course...

Chris



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

Предыдущее
От: Tod McQuillin
Дата:
Сообщение: Re: Casting integer to boolean
Следующее
От: Gary Stainburn
Дата:
Сообщение: references definition to multi-field primary key