Is there a boolean literal in SQLite?

Posted by Benjamin Oakes on Stack Overflow See other posts from Stack Overflow or by Benjamin Oakes
Published on 2010-03-24T19:06:12Z Indexed on 2010/03/24 19:13 UTC
Read the original article Hit count: 337

Filed under:
|
|

I know about the boolean column type, but is there a boolean literal in SQLite? In other languages, this might be true or false. Obviously, I can use 0 and 1, but I tend to avoid so-called "magic numbers" where possible.

From this list, it seems like it might exist in other SQL implementations, but not SQLite. (I'm using SQLite 3.6.10, for what it's worth.)

© Stack Overflow or respective owner

Related posts about sqlite3

Related posts about boolean