At 06:29 05/12/2016, you wrote:
My app supports sqlite3, SQL Server, and PostgreSQL.
SQL Server has a âbitâ data type, which accepts 1/0 and
â1â/â0â as valid values.
PostgreSQL has a âboolâ data type, which supports a variety of
values TRUE, âtâ, âtrueâ, âyyâ, âyesâ, âonâ,
â1â for true, and the opposites for false, but does not allow 1/0.
All [three] engines should support (1=1) and (1=0) for true and false,
respectively, as well as bare columnname as a boolean assertion, like
Simon said: select ... where columnC and not columnF ...
The choice of literals representing true and false is merely cosmetic.
JcD
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users