Is there a boolean literal in SQLite?

前端 未结 12 1846
逝去的感伤
逝去的感伤 2020-12-04 20:43

I know about the boolean column type, but is there a boolean literal in SQLite? In other languages, this might be true

12条回答
  •  天命终不由人
    2020-12-04 21:36

    1.1 Boolean Datatype

    SQLite does not have a separate Boolean storage class. Instead, Boolean values are stored as integers 0 (false) and 1 (true).

    Docs

提交回复
热议问题