How to optimize the unequal or in? in sql

In the

statement, how to optimize the statement if there is < > 0, or a range search that is not equal to a value?
and in,not in?

Mar.06,2021
If there are many values that do not exist in

, it is recommended to create a new temporary table to store these data, and then implement them through sql association. This will be more efficient. Of course, in the case of a small amount, it will be quick to use in or not in directly

.
Menu