Logical query processing phase of INSERT, DELETE, and UPDATE in SQL queries

user5093738

I am curious about the logical query processing phase of SQL queries.

For SELECT queries, the logical query processing phase order is:

  1. FROM
  2. ON
  3. OUTER
  4. WHERE
  5. GROUP BY
  6. CUBE | ROLLUP
  7. HAVING
  8. SELECT
  9. DISTINCT
  10. ORDER BY
  11. TOP

What is the order for INSERT, for UPDATE and for DELETE?

Jonathan Allen

If you would like to know what the actual query processing order is, take a look at the execution plan. That will tell you step by step exactly what SQL Server is doing.

https://technet.microsoft.com/en-us/library/ms178071(v=sql.105).aspx

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

MySql workbench query history ( last executed query / queries ) i.e. create / alter table, select, insert update queries

分類Dev

update record, or delete and re-insert if the user edits their cart before processing the order

分類Dev

sql optimize update and select queries

分類Dev

SQL Query solution for 3 queries

分類Dev

SQL query two queries and union

分類Dev

UWP wrap sqlite insert queries into sql transaction

分類Dev

UPDATE, INSERT and ON DUPLICATE KEY UPDATE in one query

分類Dev

SQL Difference between two delete queries

分類Dev

Which is better: select with update, delete and insert, or replace?

分類Dev

Insert and update a datetime into SQL database

分類Dev

Can't update then insert in SQL

分類Dev

Multiple Sub-Queries In A SQL Query

分類Dev

Combine individual SQL Server queries into 1 query

分類Dev

Combine individual SQL Server queries into 1 query

分類Dev

Difficulty combining these SQL queries into 1 query in phpMyAdmin

分類Dev

SQL insert query throws error

分類Dev

Delete the SQL query after use

分類Dev

Insert or update query executed successfully but data are not persistent

分類Dev

Insert content from a temporary table into an update query

分類Dev

SQLAlchemy: Using delete/update with a join query

分類Dev

Stuck with Logical SQL Query optimizations in Relational Algebra (OR in WHERE)

分類Dev

Sql query to insert datetime in SQL Server

分類Dev

SQL Query Update using a join

分類Dev

SQL-IF EXISTS UPDATE ELSE INSERT INTO

分類Dev

Mysql insert on duplicate key update and delete if key not exists

分類Dev

Store update, insert, or delete statement affected an unexpected number of rows (0).

分類Dev

What is the best way to use the insert, delete and update from an Content Provider?

分類Dev

Encountered "INSERT" at character 1, but expected: ["DELETE", "SELECT", "UPDATE"]

分類Dev

Can't Update and Delete data - SQL

Related 関連記事

  1. 1

    MySql workbench query history ( last executed query / queries ) i.e. create / alter table, select, insert update queries

  2. 2

    update record, or delete and re-insert if the user edits their cart before processing the order

  3. 3

    sql optimize update and select queries

  4. 4

    SQL Query solution for 3 queries

  5. 5

    SQL query two queries and union

  6. 6

    UWP wrap sqlite insert queries into sql transaction

  7. 7

    UPDATE, INSERT and ON DUPLICATE KEY UPDATE in one query

  8. 8

    SQL Difference between two delete queries

  9. 9

    Which is better: select with update, delete and insert, or replace?

  10. 10

    Insert and update a datetime into SQL database

  11. 11

    Can't update then insert in SQL

  12. 12

    Multiple Sub-Queries In A SQL Query

  13. 13

    Combine individual SQL Server queries into 1 query

  14. 14

    Combine individual SQL Server queries into 1 query

  15. 15

    Difficulty combining these SQL queries into 1 query in phpMyAdmin

  16. 16

    SQL insert query throws error

  17. 17

    Delete the SQL query after use

  18. 18

    Insert or update query executed successfully but data are not persistent

  19. 19

    Insert content from a temporary table into an update query

  20. 20

    SQLAlchemy: Using delete/update with a join query

  21. 21

    Stuck with Logical SQL Query optimizations in Relational Algebra (OR in WHERE)

  22. 22

    Sql query to insert datetime in SQL Server

  23. 23

    SQL Query Update using a join

  24. 24

    SQL-IF EXISTS UPDATE ELSE INSERT INTO

  25. 25

    Mysql insert on duplicate key update and delete if key not exists

  26. 26

    Store update, insert, or delete statement affected an unexpected number of rows (0).

  27. 27

    What is the best way to use the insert, delete and update from an Content Provider?

  28. 28

    Encountered "INSERT" at character 1, but expected: ["DELETE", "SELECT", "UPDATE"]

  29. 29

    Can't Update and Delete data - SQL

ホットタグ

アーカイブ