【发布时间】:2017-04-18 07:19:18
【问题描述】:
Update dp2 a set a.amt= (select((b.qty*b.rate)-b.discount) from dp2 b where a.dpinheadid=b.dpinheadid)
错误来了
ORA-01427: single-row subquery returns more than one row
#For.Ex: TABLES DP2 A,DP2 B
(b.qty*b.rate)-b.discount) THIS VALUE Update TO This column A.AMT
【问题讨论】:
-
添加一些示例表数据,包括版本之前和之后的版本。 (以及格式化文本,使用
{}。)