Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
同时比较相关子查询和内联视图。哪个执行得更快?在考虑 SQL 执行性能的同时,任何人都可以解释哪个是最好的。
提前致谢
浏览速度更快。他们的查询是“预先优化的”,它可以缓存您的结果。这将使 DBMS(在大多数情况下)从缓冲区中提取结果,而不是访问硬盘来运行查询。如果您索引视图,您将看到更大的性能提升。
干杯。