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

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.

主站蜘蛛池模板: 色达县| 汉阴县| 阳信县| 金山区| 中西区| 安泽县| 永丰县| 双桥区| 高安市| 江西省| 桓台县| 高唐县| 原平市| 那坡县| 含山县| 布尔津县| 长岭县| 宣威市| 南安市| 武清区| 兖州市| 炉霍县| 柘荣县| 台州市| 桓台县| 项城市| 青川县| 洞头县| 和田县| 任丘市| 白朗县| 霍城县| 大厂| 郎溪县| 班玛县| 海丰县| 分宜县| 当阳市| 临泉县| 临武县| 伊吾县|