请教SQL 表Aid name time1 AA 2016-05-072 BB 2016-05-093 CC 2016-04-08请问怎么取距离当前日期最近的数据? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select max(time) from 表A select top 1 * from 表A order by datediff(d,[time],getdate()) select max(time) from 表A select top 1 * from 表A order by time desc 排行榜的数据表是怎么设计的 简单的横向显示,就是着急 int 和 varbinary 可以互换吗 如何查找一个表的主键 新手求建表... 关于SQL2008日志分析问题 问一条语句:删除字段左边空格 从oracel到Sql Server的转换?? 如何将SQL SERVER6.5 升到SQL SERVER2000 关于sql server的安装 sql 聚合、关联、嵌套查询问题 sql怎么通过条件判断选取查询字段
select top 1 *
from 表A
order by datediff(d,[time],getdate())