What Happens When You Execute an SQL Query? Database Parsers and Optimizers Explained

preview_player
Показать описание
This database tutorial will tell you that once we ask a database to execute an SQL query, it turns the SQL query into a query execution plan.
Before coming up with the query execution plan, the query goes through a parser stage where the database checks whether the syntax and grammar of the SQL query are correct.

This sql tutorial will also tell you that once that happens, the sql database parser checks for errors by matching characters inside of the sql query against a set of rules, and if everything goes well, gives the sql query to the optimizer.

The task of the SQL query optimizer is to predict what query execution plans would execute the quickest and choose the best option available for your database.

Make sure to subscribe to this database tutorial channel to learn more about both relational and non-relational database management systems and more things about databases such as database triggers and more!

#database #sql #software #data #developer
Рекомендации по теме