日期:2014-05-17 浏览次数:20477 次
select top 1 *
from tab
order by 时间字段 desc
select * from tb a
where not exists(select 1 from tb where date>a.date)
select a.* from tablename a
where a.id in(select tablename.id from tablename where date>a.date group by tablename.id)
"select top 1 *
from tab
where year(时间字段)=year('"& txt.text & "') and month(时间字段)=month('" &txt.text &"' order by 时间字段 desc "