2011年7月17日

摘要: SQL Server如何进行时间比较的代码实例例子:select count(*) from table where DATEDIFF ([second], '2004-09-18 00:00:18', '2004-09-18 00:00:19') > 0说明 select DATEDIFF(day, time1 , time2) 对应示例语句如下 select DATEDIFF(day, '2010-07-23 0:41:18', '2010-07-23 23:41:18') time1 > time2 为负数; t 阅读全文
posted @ 2011-07-17 10:52 志向不在北京 阅读(940) 评论(0) 推荐(0) 编辑

导航