gpt4 book ai didi

oracle - 在 apex 中定义唯一键列

转载 作者:行者123 更新时间:2023-12-02 02:57:38 24 4
gpt4 key购买 nike

我试图从表中获取不同的记录,因为许多重复行来自以下查询

select * from sales_details_view;

当我在 pl/sql Developer 中查询以下查询时,我得到了正确的结果

select distinct * from sales_details_view;

但是当我在 Oracle APEX 4.1 的交互式报告中使用相同的查询时,出现以下错误

The report query needs a unique key to identify each row. The supplied key cannot be used for this query. Please edit the report attributes to define a unique key column. ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, etc.

最佳答案

您需要将链接列(在报表属性中)设置为“链接到单行 View ”以外的其他内容。您可以将其设置为“排除链接列”或“链接到自定义目标”。

关于oracle - 在 apex 中定义唯一键列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22704895/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com