Android读取短信库中某一联系人的最后一条短信,筛选语句怎么写

Android 码拜 8年前 (2016-06-01) 940次浏览
 String where = “address = “1252015002940813” AND date >” + (System.currentTimeMillis() – 10 * 60 * 1000);
and date那儿怎么改?(是收到的最后一条)
解决方案

10

select 字段 from 表 order by data desc;取第一条就可以了。

10

select top 1 *
from table
where ….
order by date desc

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明Android读取短信库中某一联系人的最后一条短信,筛选语句怎么写
喜欢 (0)
[1034331897@qq.com]
分享 (0)