日期:2010-03-19  浏览次数:21244 次

怎样通过SQL语句取得5分钟前增加的最新数据呢?
这里将用到了数据库的datediff内置函数,代码如下:
 
sql="select * from news where datediff(n,date,getdate())<=5"