jion("A on B.aid=A.id)->jion("B on C.bid=B.id)->j"/> jion("A on B.aid=A.id)->jion("B on C.bid=B.id)->j">

thinkphp四级关联查询如何写

WBOY
Release: 2016-06-13 12:10:23
Original
755 people have browsed it

thinkphp四级关联查询怎么写
thinkphp四级关联查询怎么写?关系:A在B的aid,B在C的bid,C在D的Cid,怎样关联起来呢?
A-->B-->C-->D
M("D")->jion("A on B.aid=A.id)->jion("B on C.bid=B.id)->jion("C on D.cid=C.id) 这样写不对
------解决思路----------------------
直接用MANY_TO_MANY

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template