With Postgres you can use
select * from users where active
or
select * from users where active = 't'
If you want to use an integer value, you should consider it as a string. You cannot use an integer value.
select * from users where active = 1 -- Does not work select * from users where active = '1' -- Works
Luc M May 13, '09 at 19:13 2009-05-13 19:13
source share