日期:2014-05-16 浏览次数:20485 次
SELECT IP,F_ModifyTime FROM ( SELECT ROW_NUMBER()OVER(PARTITION BY ip ORDER BY F_ModifyTime DESC) id IP,F_ModifyTime from #oldTempTable )a WHERE id=1
SELECT IP,max(F_ModifyTime) from #oldTempTable group by IP