HIGH_PRIORITY
HIGH_PRIORITY is a modifier in SQL that influences the scheduling priority of the statements. It can be incorporated with certain SQL commands such as SELECT and DELETE. This command instructs MySQL to delay execution of the current statement until there are no other connections that are reading from the table, giving higher priority to the statement. It is used to give particular queries priority over others.
Example
Output
Explanation
The HIGH_PRIORITY
keyword in MySQL increases the priority of an INSERT task. This example code executes a HIGH_PRIORITY INSERT that puts a new row of data into the ‘Customers’ table.