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的数据
时间: 2024-10-10 02:19:53