1

cqlengine以前cassandradjango

class vpsInfo(Model):
    ip=columns.Text(primary_key=True)
    Date=columns.DateTime(primary_key=True)
    RecordCount=columns.Integer()

我想按日期 desc 对 vps 进行排序,但是在排序时看到了这个问题:

select * from vpsinfo where ip='127.0.0.1' order by Date

错误是:未知列日期;

有人能帮我吗?

4

0 回答 0