SELECT * FROM edu_mst WHERE manage_no like('2020%') AND (onln_stdt <= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%s') AND onln_cldt >= DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%s'))

위로