我得到了错误“SQL错误:ORA-01427

我得到了错误“SQL错误:ORA-01427,sql,Sql,对于以下SQL脚本,我得到以下错误: 单行子查询返回多行 简单地说,此错误表示您的一个子查询有多个返回行: select (select something from somewhere where something = somecondition) as derived_column from mytable 子查询返回的行数超过1行。您需要全部调试。请按照堆栈溢出标准格式化sql。您有许多子查询。您必须逐个调试,以检查哪个子查询返回的行数超过1行。 select (select some

对于以下SQL脚本,我得到以下错误:

单行子查询返回多行


简单地说,此错误表示您的一个子查询有多个返回行:

select (select something from somewhere where something = somecondition) as derived_column
from mytable

子查询返回的行数超过1行。您需要全部调试。

请按照堆栈溢出标准格式化sql。您有许多子查询。您必须逐个调试,以检查哪个子查询返回的行数超过1行。
select (select something from somewhere where something = somecondition) as derived_column
from mytable