Blogger Information
Blog 6
fans 341
comment 0
visits 5886
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Thinkphp连表查询
大家讲道理的博客
Original
1044 people have browsed it
$bl_admin=M('t1')->alias('a')->join('t2 as b on b.uid = a.uid')->select();
两张表查询
$bl_comment=M('t1')->alias('a')->join('t2 as b on a.uid = b.uid', 'left')->join('t3 as c on b.uid = c.uid', 'left')->select();
三张表查询


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post