摘要:
一、以前,我在比较两个datetime 类型数据A、B是否同年同月同日的方法是: where year(A) = year(B) AND month (A) = month(B) AND day(A) = day(B) 实际上可以用更简洁的方式实现 where datediff(day,A,B) = 0 同样,要比较A、B是否同年同月的方法是: where datediff(month,A,B... 阅读全文
posted @ 2005-10-27 02:08 sashow 阅读(2416) 评论(1) 推荐(0) 编辑