Home > Backend Development > PHP Tutorial > 多表联合查询草案

多表联合查询草案

WBOY
Release: 2016-06-13 12:49:44
Original
766 people have browsed it

多表联合查询方案
   现在我是做一个功能,就是要从所有的凭证里查询数据,这些凭证是销售凭证这些,一共有7个凭证,14个表。请问大家,是联合查询好,还是有其它更好的方案。


------解决方案--------------------
按查询需求创建若干视图
------解决方案--------------------
联合查询是数据库的基本用法, 不用太担心效率问题. 关键是你要建好合理的索引
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