我正在查询两个表,以第二页的表格形式显示值,基于第一页上选择的行(第二页上的数据是可编辑的,与第一页上的列相关。)我创建了一个第二页上的隐藏项目,用于保存第一页中的唯一标识符。我遇到了麻烦,但是在查询结束时使用“where”子句获取值。如何查询Oracle APEX中的页面项值?
select g.GROUP_ID as GROUP_ID,
c.COMPONENT as COMPONENT,
c.DESCRIPTION as DESCRIPTION,
c.MANUFACTURER as MANUFACTURER,
c.MODEL as MODEL,
c.VALIDATED as VALIDATED,
'' as updated_group_id,
g.OBJECT_TYPE as OBJECT_TYPE,
g.Q_LEVEL as QUALITY_CLASS,
g.ASME as ASME
from tbl_group g
left join tbl_component c on c.group_id = g.group_id
where g.group_id = p2_x
P2_X是我隐藏的页面项,group_id是从第一页传递的唯一标识符,都是从同一个表中提取的。
答案 0 :(得分:1)
只需添加冒号:
where g.group_id = :p2_x