摘要: 今天在开发系统的时候,需要实现这样一个功能 根据选中的日期,查询相关的内容,但不是按照整个日期去过滤,而是根据,年,月,日拆分的形式去过滤,比如2013年的,2月份的 在sqlserver中,我们可以可以直接根据datePart去完成即可 select * from pays where 1=1 and datepart(year, pdate)=2013 and datepart(month, pdate)=2 and datepart(day, pdate)=26 order by pdate 但是在access中却通不过,因为方法有些不一样,需要这样写 select * from pa. 阅读全文
posted @ 2013-02-26 16:26 双魂人生 阅读(2674) 评论(0) 推荐(0)