在查询的 WHERE 子句的 etx_contains() 运算符之前,您不能使用 NOT 关键字。您必须重新撰写该查询,以使它不要使用 NOT 关键字。
SELECT id FROM recipes WHERE NOT etx_contains (ingredients, 'eggs');
SELECT id FROM recipes WHERE etx_contains(ingredients, 'eggs') INTO TEMP t1; SELECT id FROM recipes WHERE id NOT IN (SELECT id FROM t1);