【发布时间】:2016-03-18 10:46:22
【问题描述】:
我似乎无法弄清楚语法错误在哪里。尽管查询很简单。
提前致谢!
UPDATE t_stock
set f_atcid = (select a.id from t_atc a where a.f_code = ' ' where rownum < 2)
where id in (select f_stockid from t_barcode where f_barcode = ' ');
【问题讨论】:
-
错误信息是什么?
-
虽然是愚蠢的错误,但我发现这是一个常见错误(有两个
where子句)。我会在网站上保留这个问题。
标签: sql oracle oracle-sqldeveloper