当我ORA-01427: single-row subquery returns more than one row
转向运行以下查询时出现错误,知道如何解决这个问题吗?或者你认为我可能需要写一个游标来克服这个问题?请帮忙!
SLECT DISTINCT J.NAME
FROM Q_jobs j, xx_po x
WHERE j.name IN
CASE
WHEN x.name IS NOT NULL THEN
(select name from xx_po)
ELSE
(SELECT DISTINCT j.name
FROM per_jobs
WHERE j.name not LIKE '%Des%')
END
ORDER BY J.NAME