使用 oracle 的简单更新语句中缺少等号

Missing equal sign on simple update statement using oracle

我在这个简单的更新语句中使用 apex oracle 和 运行 导致 缺少等号 错误。有人可以指出这个查询有什么问题吗?

update product_t set qty-onhand = 11000 where productid = 28

qty-onhand 等于 column qty 减去 column onhand.

您需要 'escape' 列名称 (或者只使用更好的列名称,其中没有减号)

update product_t
set "qty-onhand" = 11000
where productid = 28