在SQL语句中加入时间比较作为查询条件

select * from 表名 where 列名 = ? and DATEDIFF(hh,时间列,'2016-08-22 15:05:59.000')<9

posted @ 2016-09-01 15:26  傻傻的幸福  阅读(5018)  评论(0)    收藏  举报