Oracle BI 报表中日期参数的格式

发布于 2024-09-13 05:54:32 字数 146 浏览 2 评论 0原文

在 Oracle BI Publisher 中,我似乎找不到以什么格式将日期参数传递给查询。例如

select * from myTable where the_date = :the_date

有什么想法吗?

In Oracle BI Publisher, I can't seem to find in what format the date parameters are passed in to the query. For example

select * from myTable where the_date = :the_date

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

从来不烧饼 2024-09-20 05:54:32

这通常通过 NLS_DATE_FORMAT 参数来实现,可以在会话中设置,也可以针对整个数据库进行设置。 oracle 中的默认值是“DD-MON-YY”。当然,您可以使用 to_date 转换函数更改查询以采用您希望的任何格式。

This would typically be via the NLS_DATE_FORMAT parameter, either set in your session or for the whole database. The default in oracle is 'DD-MON-YY'. Of course you may change your query to take it in any format you wish with the to_date conversion function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文