A brief discussion on the factorial of Oracle subquery (with use)

Source: Internet
Author: User

Recently learning Oracle, want to improve the efficiency and legibility of the written statement, today's note is about the subquery factor words such a thing

A factorial query may not necessarily improve efficiency, but it can improve the readability of the program significantly

        The result of the--with statement with the Sales_c (select Sales,e_no,e_name from Emplyee) SELECT * from sales_c;--query is (select Sales,e_no,e_na Me from Emplyee) The contents of this list are--with once, and can be used arbitrarily in the following example, which improves the readability of the code-for example with the Sales_c (        select Sales,e_no,e_name from Emplyee),    name_c (       select Sales,e_name from Sales_c) SELECT * from sales_c,name_c;--it's really handy to read.

Principle: Oracle will solidify this query_name with Query_name as a temporary table or view to improve query efficiency

A brief discussion on the factorial of Oracle subquery (with use)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.