SQL 查询 - 不存在 不工作

SQL Query- NOT exists Not working

select *
from text_mining
where  NOT EXISTS (select 1 from history
                  where text_mining.Noun = history.Noun
                    and text_mining.Adjective = history.Adjective)

谁能告诉我这有什么问题这是我的错误谢谢

Unrecognized keyword. (near "NOT" at position 35)
Unrecognized keyword. (near "EXISTS" at position 39)
Unexpected token. (near "(" at position 46)

SELECT * FROM history a
WHERE !EXISTS
(SELECT 1 FROM text_mining b 
WHERE a.Noun = b.Noun AND a.Adjective = b.Adjective)

使用 !EXISTS 而不是 NOT EXISTS

位置35表示关键字'NOT'和ÉXISTS'之间的space;您的查询应该有效,请尝试删除位置 35 的隐藏字符;

SELECT  t.*
    FROM  text_mining AS t
    LEFT JOIN  history AS h USING(Nown, Adjective)
    WHERE  h.id IS NULL

history 应该有 INDEX(Noun, Adjective) 任意顺序。