哪些职业不是学生、律师或教育工作者?按字母降序排列?
SELECT Occupation
FROM Viewer
WHERE occupation NOT IN 'student,lawyer,educator'
ORDER BY occupation desc;
我不断收到错误消息。我究竟做错了什么?
IN
需要括号括起来的表达式列表:
SELECT Occupation
FROM Viewer
WHERE occupation NOT IN ('student','lawyer','educator')
ORDER BY occupation desc;
请参阅文档IN
以查看正确的语法: