我有这个mysql
查询,它可以在指定日期获取特定数据;
SELECT id FROM mytable WHERE DAY(idate)='11' AND MONTH(idate)='01' AND YEAR(idate)='2013' GROUP BY id
现在我想获取指定日期的数据和指定日期之外的数据,我试过这个查询并返回零结果;
SELECT id FROM mytable WHERE DAY(idate)='11' AND DAY(idate)<>'11' AND MONTH(idate)='01' AND YEAR(idate)='2013' GROUP BY id