Mysql three-table connection query problem three-table left join query, why is there repeated data, there is a great God to explain the reason la! For example, I have nine records for a separate query, but I still need fields in other ancillary tables. duplicate data is displayed in the result join query, and the total number is also nine. what is the situation? Mysql three-table connection query
Why are duplicate data displayed in the left join query of the three tables! For example, I have nine records for a separate query, but I still need fields in other ancillary tables. duplicate data is displayed in the result join query, and the total number is also nine. what is the situation?
Share:
------ Solution --------------------
It depends on how your SQL commands are written.
Which table does the duplicate data come from?
The result of the left Link must contain all matching records of the left table.
------ Solution --------------------
Paste the table structure and write SQL statements.