Mysql时间范围
select distinct
NOTICE_ID as noticeId,
CREATE_DATE as time,
CONTENT as content,
IMG_URL as imglist
from noticeinfo
left join (select * from teacher where TEACHER_CODE=117) t1
on t1.TEACHING_CLASS = SEND_TO_ID
WHERE VISABLE = "1" and ((EFFECTIVE_DATE >NOW()) OR (EFFECTIVE_DATE is null))
and CREATE_DATE BETWEEN "2015-05-19" and "2015-05-20";
ORDER BY CREATE_DATE
恰能取到2015-05-19的数据
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。