String where = “address = “1252015002940813” AND date >” + (System.currentTimeMillis() – 10 * 60 * 1000);
and date那儿怎么改?(是收到的最后一条)
and date那儿怎么改?(是收到的最后一条)
解决方案
10
select 字段 from 表 order by data desc;取第一条就可以了。
10
select top 1 *
from table
where ….
order by date desc
from table
where ….
order by date desc