Oracle SQL execution Flowchart _sql execution process
First, the execution steps of the SQL statement: 1 grammar analysis, the analysis of the syntax of the sentence is consistent with the norms, measuring the meaning of the expressions in the statement.
2 semantic analysis, check the existence of all the database objects involved in the statement, and the user has the appropriate permissions.
3 View conversion to convert query statements involving views into corresponding base table query statements.
4 expression conversion to convert a complex SQL expression to a simpler equivalent join expression.
5 Select the optimizer, the different optimizer generally produces different "execution plan"
6 Select the connection mode, Oracle has three ways to connect, to multiple tables to connect Oracle to choose the appropriate way to connect.
7 Select the connection order, choose which pair of tables to connect to the multiple tables first, select which table in the two tables as the source data table.
8 Select the search path of the data, select the appropriate data search path according to the above conditions, choose the whole table search or use the index or other way.
9 Run "execution plan"
Flowchart (not a good draw)
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