mysql在and和or条件中会先执行and、再执行or,如果存在括号会先执行括号中的条件
SELECT * FROM _default WHERE `字段1` = xxx OR `字段2` = xxx AND `字段3` = xxx OR `字段4` = xxx AND `字段5` = xxx;
等价于
SELECT * FROM _default WHERE `字段1` = xxx OR (`字段2` = xxx AND `字段3` = xxx) OR (`字段4` = xxx AND `字段5` = xxx);
SELECT * FROM _default WHERE `字段1` = xxx OR `字段2` = xxx AND `字段3` = xxx OR `字段4` = xxx;
等价于
SELECT * FROM _default WHERE `字段1` = xxx AND `字段3` = xxx OR `字段2` = xxx OR `字段4` = xxx;