oracle - 当期望以下之一时遇到符号 "INNER";对于具有相交减序开始并集的组,其中连接

标签 oracle oracle11g oracleforms

我正在使用 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/

相关文章:

oracle - PL/SQL : catching numbered exception?

oracle - 如何有条件地连接 Oracle SQL 中的表函数(该函数以主表行列作为参数),而无需过多的函数调用?

ms-access - Oracle Forms 与 Microsoft Access 相比如何( "front-end")?

database - oracle中低基数高更新列应该创建什么索引?

Oracle Forms 设置项无效

oracle - Oracle Forms 11g 可以连接到 DB2 或 SQL Server 吗?

oracle - TNSPING 确定,但 sqlplus 给出 ORA-12154?

database - 是否建议在 Oracle 表空间中使用统一的扩展区大小?

c# - 解析来自 C# 的 Oracle 查询参数

c# - 在 NHibernate 中设置参数时为 “ORA-01461: can bind a LONG value only for insert into a LONG column”