我正在努力做到这一点
SELECT `Name`,`Value` FROM `Constants`
WHERE `Name` NOT IN ('Do not get this one'|'or this one');
Run Code Online (Sandbox Code Playgroud)
但它似乎没有用.
如何在不执行此操作的情况下获取除少数几个以外的所有值:
SELECT `Name`,`Value` FROM `Constants`
WHERE `Name` != 'Do not get this one'
AND `Name` != 'or this one'
Run Code Online (Sandbox Code Playgroud)
第一个使用int值,但不能与varchar一起使用,是否有类似第一个查询的语法?