码迷,mamicode.com
首页 > 其他好文 > 详细

cassandra-CQL

时间:2016-06-13 17:13:51      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

describe keyspaces;

use falcon_gps;

select * from gps;

INSERT INTO gps (gprscode,gpstime,acc,alarmdes,direct,lat,lng,offset,posinfo,power,sendmodel,speed,status,statusdes,updatetime,vehicleid)
VALUES (‘xxd001‘,2,3,‘xxxxxx‘,5,6,7,8,‘‘,10,11,12,13,‘‘,15,16);

UPDATE gps SET alarmdes = ‘yyyyyyyyy‘
WHERE gprscode=‘xxd001‘ and gpstime =3;

delete FROM gps  WHERE gpstime = 3 AND gprscode=‘xxd001‘;

 

cassandra-CQL

标签:

原文地址:http://www.cnblogs.com/xxdfly/p/5581178.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!