FS1360472174 / nosql-cassandra

cassandra 知识
Apache License 2.0
1 stars 0 forks source link

[NOT SUMMARY]cassandra ttl config #4

Closed FS1360472174 closed 8 years ago

FS1360472174 commented 8 years ago

TTL:time to live 设置数据过期时间 1.可以在insert,或者update的时候设置 Insert into table test(col1,col2)values('t1','t2') using ttl 86400

update table test using ttl 86400 set col2='t2' where col1='c1'

2.可以通过select 语句查看ttl select TTL(col) from test where xxx