SQLite 数据库字段类型
2013-12-27 22:32
197 查看
都知道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
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
相关文章推荐
- android sqlite 升级数据库 修改表名, 增加字段,修改字段类型
- SQL脚本循环修改数据库字段类型
- 在SQLite Expert上用日期类型字段作为条件查询时注意日期的格式化
- 对于数据库中表示状态或类型字段表示方法的思考
- SQL获取所有用户名,数据库名、所有表名、所有字段名及字段类型(转)
- 数据库修改表名,字段名 字段类型
- 关于数据库Varchar字段类型长度设计问题
- mysql设置数据库字段类型,保存时自动获取数据库服务器时间
- JDBC数据类型与数据库字段对应表――SQL Server篇
- mysql、sqlServer、hsql、oracle、db2各数据库支持的字段类型与最大精度
- asp 创建 Access 数据库,字段,字段类型
- jdbc操作数据库并自动获取字段类型
- 通过jdbc获取数据库中的表结构 主键 各个表字段类型及应用生成实体类
- SQL批量更新数据库中所有用户数据表中字段类型为tinyint为int
- 数据库字段类型
- SqlServer 中使用Jtds驱动连接数据库,如果字段类型为ntext,可能查询输出的为Object: net.sourceforge.jtds.jdbc.ClobImpl@66fa192
- MSSQL数据库的字段类型总结
- sqlite字段类型介绍
- 数据库字段的类型说明
- ADO 访问数据库 存取image类型字段数据 源代码