search

Home  >  Q&A  >  body text

android - 安卓Sqlite中布尔类型的数据存储。

大家讲道理大家讲道理2772 days ago591

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 17:14:20

    Sqlite’s data type does not support boolean. There are 5 data types of sqlite,

    • NULL empty value

    • INTEGER INTEGER

    • REAL floating point number

    • TEXT string

    • BLOB big data

    getBlob does not take Boolean value data, but the corresponding big data type value data, and the corresponding type is BLOB. Boolean data can be stored with values ​​0,1.

    reply
    0
  • Cancelreply