DISTINCT不会从内部联接中删除重复项

时间:2018-12-14 21:28:59

标签: mysql distinct

DISTINCT不会从内部联接中删除重复项。有人知道为什么吗?

SELECT DISTINCT * FROM lastposts
INNER JOIN users ON lastposts.user_id = users.id
INNER JOIN friends ON lastposts.user_id = friends.user_id
ORDER BY date DESC

0 个答案:

没有答案