Oracle Apex 21.2.0显示图像主键
我想在报告列中显示图像。我的表具有复合主键:ID和日期。 当我将这些列在blob属性中添加为主要键列1,而主键列2由于日期列找不到数据。这是日期格式的问题,还是其他问题?
I want to display image in report column. My table has composite primary key: ID and DATE.
When I add these columns in BLOB attributes as Primary Key Column 1 and Primary Key Column 2 report can not find data because of DATE column. Is it a problem in date format, or something else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您仅将一列用作主键列(序列或 - 如果数据库版本支持它 - 身份列)。
然后可以将[ID,日期]的组合设置为唯一键(将两个列
设置为NOT NULL
“模拟”主键会做什么)。为什么?尽管您的数据模型可能很好,但某些APEX功能“遭受”此类功能而“受到损失”,并且更喜欢拥有单列主要键。
I'd suggest you to use only one column as a primary key column (a sequence or - if your database version supports it - an identity column).
Combination of [ID, DATE] you currently have can then be set to unique key (set both columns
NOT NULL
to "mimic" what primary key would do).Why? Although your data model probably is just fine, certain Apex functionalities "suffer" from such things and prefer having a single-column primary keys.