Home > Database > Mysql Tutorial > body text

leftjoin陷阱之一对多导致数据量增加

WBOY
Release: 2016-06-07 15:54:17
Original
2369 people have browsed it

从上面2张图可以看出,本来我们是想用一些left join来匹配出我们需要的信息 但却因此使得我们的统计数据量增大了 为什么呢? 这个就是原因了 ,我们关联的一张表有1:n的情况 vcD4KCgoKCjxwPs6qwcvR3cq+x+Wz/rrN1qTD96Osx+u/tM/Cw+ajujwvcD4KPHA+PGltZyBzcmM

\

\

从上面2张图可以看出,本来我们是想用一些left join来匹配出我们需要的信息

但却因此使得我们的统计数据量增大了 为什么呢?

\

这个就是原因了 ,我们关联的一张表有1:n的情况喎?http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KCgoKCjxwPs6qwcvR3cq+x+Wz/rrN1qTD96Osx+u/tM/Cw+ajujwvcD4KPHA+PGltZyBzcmM9"http://www.2cto.com/uploadfile/Collfiles/20140327/2014032709020129.jpg" alt="\">


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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!