Home >Database >Mysql Tutorial >mysql-代替多表联查的方案?

mysql-代替多表联查的方案?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:40:171268browse

mysql存储过程数据库多表查询sql性能优化

网上都说多表联查性能很低尽量避免join的操作等等,我在项目里面也碰到了这个大问题,有些报表就需要几张表联查才能得到数据,但是表里面数据太多查询时间就增加了。我尝试用存储过程代替,但是我在存储过程里面还是只会写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