Double Data Type in Cassandra Query Language ( CQL)
Double Data Type in Cassandra Query Language takes 8 bytes to store integer/ float value. In below example I have used Double data type for salary column in tbs table.
CQLSH:techbrotherstutorials>CREATE TABLE tbs
(
id INT PRIMARY KEY,
NAME TEXT,
salary DOUBLE
);
(
id INT PRIMARY KEY,
NAME TEXT,
salary DOUBLE
);
Let's insert coupel of records in tbs table.
CQLSH:techbrotherstutorials>INSERT INTO tbs
(id, NAME, salary)
VALUES (1,'Aamir',3000 );
(id, NAME, salary)
VALUES (1,'Aamir',3000 );
CQLSH:techbrotherstutorials>INSERT INTO tbs
(id, NAME, salary)
VALUES (1,'John Doe',4500.50 );
(id, NAME, salary)
VALUES (1,'John Doe',4500.50 );
Select data from table to check if double data type is insert correctly in salary column.
CQLSH:techbrotherstutorials>SELECT id,
NAME,
salary
FROM tbs;
NAME,
salary
FROM tbs;
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeletegia ve may bay di my
săn vé máy bay đi quy nhơn
vé máy bay hn sài gòn
vé máy bay đà lạt đi hà nội
mua vé về việt nam
taxi đi sân bay giá rẻ
combo nha trang 4n3đ