有没有在Android的SQLite的键入长时间? [英] Is there type long in android SQLite?

查看:89
本文介绍了有没有在Android的SQLite的键入长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用SQLiteDatabase与列类型来创建表'龙'。

I want to create a table using SQLiteDatabase with column type 'Long'.

这可能吗?

(我只需要编写整数长呢?)

(I just need to write long instead of integer?)

推荐答案

形成 sqlite的文档

整数。值被一个符号整数,存储在1,2,3,4,6,或8个字节根据值的幅度。

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

由于为8字节, INTEGER 也可以保存为8字节的值,这样你就可以使用 INTEGER

Since long is 8 byte and INTEGER can also save values of 8 bytes, so you can use INTEGER

这篇关于有没有在Android的SQLite的键入长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆