0
REM Query 8
SELECT Make, Model, Engine, Transmission
FROM Auto
WHERE Upper(Make) = IN (‘FORD’, HONDA’, ‘NISSAN’, ‘SATURN’)
ORDER BY Make;

第 3 行的错误:

ORA-00936: 缺少表达式

不太确定我做错了什么

4

3 回答 3

6

你有两个我看到的问题:

  1. 你有一个=之前的 IN
  2. 你的撇号是错误的

    SELECT Make, Model, Engine, Transmission
    FROM Auto
    WHERE Upper(Make) IN ('FORD', 'HONDA', 'NISSAN', 'SATURN')
    ORDER BY Make;
    
于 2013-09-04T17:14:04.680 回答
3

尝试这个:

REM Query 8
SELECT Make, Model, Engine, Transmission
FROM Auto
WHERE Upper(Make) IN ('FORD', 'HONDA', 'NISSAN', 'SATURN')
ORDER BY Make;
于 2013-09-04T17:13:38.587 回答
0

请进行语法更正如下

SELECT Make, Model, Engine, Transmission
FROM Auto
WHERE Upper(Make) IN (‘FORD’, HONDA’, ‘NISSAN’, ‘SATURN’)
ORDER BY Make;
于 2013-09-04T17:18:55.260 回答