Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是以下查询:
SELECT ... AND ((({$sql_field}) LIKE '%%') OR ({$sql_field} IS NULL))
相当于选择?
也就是说,是否有任何结果会被条件过滤掉
(({$sql_field}) LIKE '%%') OR ({$sql_field} IS NULL)
假设括号最后是平衡的,我同意,这似乎没用。
对我来说看起来像是一些伏都教代码,我会在修订控制日志中询问写它的人 WTF 他们在想什么 :)