sql 中有关时间的语句
摘要:
1、比较得到两个时间相差的间隔SELECT datediff(minute, ’2009-04-28 12:05:00′, getdate());SELECT datediff(month, ’2009-04-28 12:05:00′, ’2009-04-28 12:05:00′); 返回结果是:0语法 DATEDIFF ( date-part, date-expression-1, date-expression-2 )date-part : year | quarter | month | week | day | hour | minute | second | millisecond参 阅读全文
posted @ 2013-07-08 15:05 zg_heng 阅读(679) 评论(0) 推荐(0) 编辑