oracle 出现错误信息问题请教高手,

来源:百度知道 编辑:UC知道 时间:2024/05/17 02:10:50
ORA-01427
ORA-02063
ORA-06512
出现问题怎么解决, 请高手请教.
ORA-01427: single-row subquery returns more than one row
ORA-02063: preceding line from STXAPS
ORA-06512: at "APPS.STX_APS_SHOPCODE_FNC", line 10

返回多条记录。
SQL没考虑周全,常会出这样的错。
原以为只返回一条记录,但事实上返回了记录集(多条记录)。具体要看的SQL了!

single-row subquery returns more than one row
一般是当select或where的时候用到的子查询,子查询返回多于一条记录
比如:
select XXX from table where field=(select field from table1)
这种情况下只要把=换成in就可以了

子查询中返回多条记录