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中实现这样的东西?
ID!= {2,3}
其中 ID 是一列。或者我必须使用多个 OR 语句?
是的,not in:
not in
ID not in (2,3)
你可以在这里阅读更多。
你必须尝试
ID NOT IN (2,3)
或者
ID <> 2 or ID <> 3