谁能给我一些例子来进行查询,其中有多个 WHERE 语句?
我有以下查询,我想添加 WHERE privacy = 'public'
$query = $this->db->query("SELECT DATE_FORMAT(eventDate,'%d') AS
day,eventContent,eventTitle,id FROM eventcal WHERE eventDate BETWEEN
'$current_year/$current_month/01' AND '$current_year/$current_month
/$total_days_of_current_month'");
提前致谢。