I am trying to understand how the next statement will be executed in several entries.
SELECT * FROM test WHERE product='$product' AND (summary LIKE '%$keywords%' OR exp LIKE '%$keywords%') ORDER BY `$order_by` DESC;
I am new to SQL, so here is what I would like to know:
1. When you execute an SQL query, I believe that it looks at every row in the table. When a match is found, where does it temporarily save the result until all results are returned?
2. In the above example, we say that we are looking at one row in the table, and there is a correspondence for summary . Will the request continue executing OR exp LIKE '%$keywords%' when a match is already found?
source share