Int Data Type in Cassandra Query Language ( CQL)
Int data type in Cassandra Query Language ( CQL) takes 4 Bytes to save Integer value. The values those you can save in Integer data type in CQL rangefrom -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647).
Let's create a table with Integer data type in CQL and insert couple of values for test. Both columns (id and intvalue) are integer type in tbs table.
CQLSH:techbrotherstutorials>CREATE TABLE tbs
(
id INT PRIMARY KEY,
intvalue INT
);
(
id INT PRIMARY KEY,
intvalue INT
);
Insert values into table by using below CQL statement
CQLSH:techbrotherstutorials>INSERT INTO tbs ( id, intvalue )
VALUES ( 1,-20000 );
VALUES ( 1,-20000 );
CQLSH:techbrotherstutorials>INSERT INTO tbs ( id, intvalue )
VALUES ( 2,500000 );
VALUES ( 2,500000 );
Use the Select query in CQL to check the records in table.
CQLSH:techbrotherstutorials>SELECT *
FROM tbs;
FROM tbs;
Aivivu đại lý vé máy bay, tham khảo
ReplyDeletevé máy bay đi Mỹ tháng nào rẻ nhất
giá vé máy bay đi sài gòn vietnam airline
mua vé máy bay quy nhơn đi hà nội
vé máy bay ha noi nha trang
ve may bay di Hue gia re
taxi sân bay giá rẻ
combo đà nẵng giá rẻ