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.
我目前正在使用以下 SQL 查询:
("SELECT * FROM `form` WHERE '1' IN (show1) AND 'agree' NOT IN (test)")
但是我似乎无法弄清楚如何在其中添加 OR .. 如果它说“同意”或“不同意”,我需要过滤掉
有任何想法吗?
假设 show1 和 test 是列并且这与 Mysql 相关,这应该可以工作:
"SELECT * FROM `form` WHERE show1 IN ('1') AND test NOT IN ('agree', 'disagree')"
我更喜欢将列放在比较的左侧:)