既然是两个实体,那么你为什么要硬扯在一起呢?难道要设计两个中间表吗? ------解决方案-------------------- select * from A left join A_B on A.id=A_B.aid left join A_C on A.id=A_C.aid ------解决方案-------------------- 那是当然的! 但只需要 INNER JOIN 就可以了
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn