A
A
Apostol632020-10-29 14:50:38
SQL
Apostol63, 2020-10-29 14:50:38

How to remove duplicate elements from database response?

There is such a request to the database
5f9aac19961e3605844150.png

In $dealershipsIds id array.
The problem is that if several id from this array correspond to a record in the database, then all these records fly in response. How to remove duplicates?
I changed select to distinct and it did not fix the situation. The answer was the same.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question