我已经尝试了所有,还有另一种可以工作的语法吗?我有以下
SELECT `ID` , `Home_Team`
FROM `FixturesDates` where `ID` =
(SELECT `ID`
FROM `FixturesDates`
WHERE `Home_Team`
REGEXP 'saturday|sunday|monday|tuesday|wednesday|thursday|friday'
order by ID asc LIMIT 1)
这有效,
我也有
SELECT `ID` , `Home_Team`
FROM `FixturesDates`
where `ID` =
(SELECT `ID` FROM `FixturesDates` WHERE `Home_Team`
REGEXP 'saturday|sunday|monday|tuesday|wednesday|thursday|friday'
order by ID asc LIMIT 1,1)
这也有效,但我无法将两者结合在一起,已经尝试过
SELECT `ID` , `Home_Team`
FROM `FixturesDates`
where `ID` =
(SELECT `ID` FROM `FixturesDates` WHERE `Home_Team`
REGEXP 'saturday|sunday|monday|tuesday|wednesday|thursday|friday'
order by ID asc LIMIT 1)
UNION
(SELECT `ID` FROM `FixturesDates` WHERE `Home_Team`
REGEXP 'saturday|sunday|monday|tuesday|wednesday|thursday|friday'
order by ID asc LIMIT 1,1)
但这不起作用,AND 或 OR 也不起作用。还有其他的吗?
谢谢