我在这样的表中有行Players
。
+-----------+----+----+----+----+----+----+----+----+
| USERNAME | A | B | C | D | E | F | G | H |
+-----------+----+----+----+----+----+----+----+----+
| Mike | 45 | 34 | 56 | 58 | 29 | 74 | 39 | 48 |
+-----------+----+----+----+----+----+----+----+----+
现在我的查询应该有点像..
SELECT USERNAME FROM PLAYERS IF (DIFFERENCE BETWEEN A & B <20) IF (DIFFERENCE BETWEEN C & D <20) IF (DIFFERENCE BETWEEN E & F <20) IF (DIFFERENCE BETWEEN G & H <20)
现在..如果四个条件中的任何两个为真,我必须选择用户名..请帮助