处理此查询时出现错误:
SELECT *
FROM example
WHERE pri IN (
SELECT pri
FROM (
SELECT pri
,sbst
,st
,count(*) AS cnt
FROM example
WHERE sbst = 'oi'
GROUP BY pri
) AS tmp
WHERE cnt = 1
AND st = 'ko'
)
AND sbst = 'cp';
错误如下:
ORA-00907:缺少右括号 00907。00000 -“缺少右括号” *原因:
*操作:第 5 行错误:第 5 列:136
但我不认为我错过了一个括号。