标签:
参考http://bbs.csdn.net/topics/300107093 5楼
使用DATEDIFF,MSDN介绍
select * from a where todate between ‘2008-01-03 13:47:00‘ and ‘2008-1-3 13:55:00‘ and datediff(mi,‘2008-01-03 13:47:00‘,todate) % 2=0
参照MSDN,mi表示分钟,todate是数据库字段,a为表名
标签:
原文地址:http://my.oschina.net/shanlilaideyu/blog/519383