数据库排序查询

GreenDao 按时间排序 ,能够再表中建立一个时间戳字段, System.currentTimeMillis()记录当前时间 orderDesc(MaspEntityDao.Properties.TIMESTAMP) 按时间倒序排列 orderAsc(MaspEntityDao.Properties.TIMESTAMP); 按时间升序排列
相关文章
相关标签/搜索