Home >Backend Development >C#.Net Tutorial >Sql execution process description

Sql execution process description

巴扎黑
巴扎黑Original
2017-09-06 11:11:181187browse

The most obvious feature that distinguishes SQL from other programming languages ​​is the order in which code is processed. In most programming languages, codes are processed in coding order, but in SQL language, the first clause to be processed is the FROM clause, and although the SELECT statement appears first, it is almost always processed last.

Each step generates a virtual table, which is used as input to the next step. These virtual tables are not available to callers (client applications or external queries). Only the table generated in the last step will be returned to the caller. If a clause is not specified in the query, the corresponding step is skipped. What follows is a brief description of the various logical steps that apply to SQL Server 2000 and SQL Server 2005.
Code highlighting produced by Actipro CodeHighlighter (freeware)

-->(8)SELECT (9)DISTINCT (11)