SQLite中是否有Long类型? [英] Is there type Long in SQLite?
本文介绍了SQLite中是否有Long类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个列类型为Long
而不是Integer
的表.是否有可能?
I want to create a table with the column type Long
instead of Integer
. Is it possible?
推荐答案
来自 SQLite文档
INTEGER .该值是一个有符号整数,根据值的大小存储在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.
由于long
是8个字节,而INTEGER
也可以保存8个字节的值,因此可以使用INTEGER
.
Since long
is 8 byte and INTEGER
can also save values of 8 bytes, you can use INTEGER
.
这篇关于SQLite中是否有Long类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文