加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

SQLite 数据库字段类型

发布时间:2020-12-12 20:08:29 所属栏目:百科 来源:网络整理
导读:都知道Android中数据保存之一就是使用了sqlLite,所以经常创建表需要涉及到数据库字段。 sqlLite中包含5中字段,根据下面的介绍对于想inte,应该会根据值自动设置长度存储。具体待学习 Each value stored in an SQLite database (or manipulated by the data

都知道Android中数据保存之一就是使用了sqlLite,所以经常创建表需要涉及到数据库字段。

sqlLite中包含5中字段,根据下面的介绍对于想inte,应该会根据值自动设置长度存储。具体待学习

Each value stored in an SQLite database (or manipulated by the database engine) has one of the following storage classes:

  • NULL. The value is a NULL value.

  • INTEGER. The value is a signed integer,stored in 1,2,3,4,6,or 8 bytes depending on the magnitude of the value.

  • REAL. The value is a floating point value,stored as an 8-byte IEEE floating point number.

  • TEXT. The value is a text string,stored using the database encoding (UTF-8,UTF-16BE or UTF-16LE).

  • BLOB. The value is a blob of data,stored exactly as it was input.

参考:

http://www.sqlite.org/datatype3.html

http://kuikui.iteye.com/blog/423490

http://developers.androidcn.com/reference/android/database/sqlite/package-summary.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读