SELECT * FROM leads WHERE researcher_id=66 AND WHERE YEARWEEK(entry_date)=YEARWEEK(now())
YEARWEEK不能与常规ID查询结合使用吗?
我是否需要其他一些括号或重新排列?
基本上,我想归还研究人员本周产生的所有线索。
最佳答案
--modify researcher_id=66 AND WHERE researcher_id=66 AND
SELECT * FROM leads WHERE researcher_id=66 AND YEARWEEK(entry_date)=YEARWEEK(now())