我有查询在MySQL查询选择唯一行
SELECT DISTINCT employer.id, employer.name
FROM employers
LEFT JOIN positions ON positions.id = employers.id
LEFT JOIN statuses ON statuses.position = positions.some
WHERE statuses.number = 2
而且就是一些我需要从雇主独特的记录,但我得到的重复,因为statuses.number不重复像222 6 777等我需要抢他们只有一次。 我不想使用DISTINCT有没有其他方法?
感谢我一直在寻找它 – Johnds