Answer the question
In order to leave comments, you need to log in
How to remove the following duplicate rows mysql?
How to edit the code so that the next duplicate entries are removed.
Should be like this:
id_user | id_post
2 | 16
4 | 12
1 | 25
There is the following code
SELECT `id_user`, `id_post` FROM `posts`
ORDER BY RAND()
LIMIT 10
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question