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 查询:
MyField <> '%不能%"
AND MyField = '%Able%"
显然我不能应用这个过滤器......
你需要在这里使用 sql 的 like oprator
select * from ( SELECT * FROM tableanme WHERE MyField LIKE '%Able%' )d where MyField NOT LIKE '%Not Able%'
你需要的位是
WHERE MyField LIKE '%Able%' AND MyField NOT LIKE '%Not Able%'