我正在使用 Oracle 表单生成器,并在产品数据 block 上创建了when-new-record-instance 触发器,该触发器具有:
select sum(s.Count) into :count.vt from u1.shopping_cart_items s
inner join u1.orders o on o.order_id = s.order_id
where s.product_id = :product.product_id and o.validated=1;
我收到以下错误:
encountered the symbol "INNER" when expecting one of the following ,;for group having intersect minus order start union where connect
这个错误是什么意思?怎么解决呢?预先感谢您。
最佳答案
您的 Forms 版本可能不支持加入。
您可以按如下方式重写查询:
select sum(s.Count) into :count.vt
from u1.shopping_cart_items s, u1.orders o
where o.order_id = s.order_id
and s.product_id = :product.product_id
and o.validated=1;
关于oracle - 当期望以下之一时遇到符号 "INNER";对于具有相交减序开始并集的组,其中连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56381696/