mysql時間比較

 

1 select * from SY_ZGRD where SHZT_DM = '01' and ZXBZ ='Y' AND SQRQ >= '2017-04-28 00:00:00' AND SQRQ <= '2017-04-28 23:59:59';
2 
3 select * from SY_ZGRD where SHZT_DM = '01' and ZXBZ ='Y' AND SQRQ >= '2017-04-28 00:00:00' AND SQRQ <= '2017-04-28 23:59:59' and zgrs >=1;
相關文章
相關標籤/搜索