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

多表联合查询草案

WBOY
WBOYOriginal
2016-06-13 11:19:53862browse

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


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