如何将数字转换为分钟间隔?
在伪 Oracle 中,我想要执行以下操作:
select systimestamp + to_interval(select NUMERIC_COLUMN from SOME_TABLE where SOME_TABLE_PK = :stuff) from dual;
如果分钟数始终相同,我可以使用间隔文字,如 interval '360' 分钟
,但我找不到将数字转换为 MINUTE
间隔的简单函数。我缺少什么?
In pseudo-Oracle, I want to do the following:
select systimestamp + to_interval(select NUMERIC_COLUMN from SOME_TABLE where SOME_TABLE_PK = :stuff) from dual;
If the number of minutes were always the same, I could use an interval literal a la interval '360' minute
, but I can't find a simple function to convert a number to a MINUTE
interval. What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 numtodsinterval 函数正是您需要的转换(数字到间隔):
You can use the numtodsinterval function which does exactly the conversion you need (number to interval):