官术网_书友最值得收藏!

Integers

Cassandra has five types that store integers:

  • The int type stores 32-bit integers, which can store values ranging from approximately -2.1 billion to 2.1 billion
  • The bigint type stores 64-bit integers, which can store values from about -9 quintillion to 9 quintillion
  • The smallint type stores 16-bit integers, which can store values from -32,768 to 32,767
  • The tinyint type stores 8-bit integers, which can store values from -128 to 127
  • The varint type stores integers of arbitrary size; it has no minimum or maximum value

All integer types are signed, meaning they can hold positive or negative integers. There are no unsigned numeric types in Cassandra. Integer literals in CQL, like in most languages, consist of an optional minus sign followed by one or more digits, such as 3,549.

主站蜘蛛池模板: 页游| 襄城县| 丹巴县| 商丘市| 玛纳斯县| 武宁县| 佛山市| 通渭县| 尚志市| 武威市| 宜良县| 芦山县| 临湘市| 华池县| 汉沽区| 喜德县| 宝兴县| 庆云县| 浦东新区| 台北县| 南岸区| 晋江市| 容城县| 马山县| 贵南县| 米易县| 怀柔区| 蒲城县| 襄樊市| 阿巴嘎旗| 芦山县| 普安县| 关岭| 嘉祥县| 革吉县| 西城区| 苏尼特左旗| 盘锦市| 湖口县| 达州市| 徐汇区|