[英]sql aws athena(timestamp)
how i will add 30 minutes in sql aws athena我将如何在 sql aws athena 中添加 30 分钟
If you could provide actual source values and data type it would be easy to understand.如果您可以提供实际的源值和数据类型,那将很容易理解。
I am assuming stamp
is the column name here in date time data type.我假设stamp
是日期时间数据类型中的列名。 Just update now()
with stamp
column:只需使用stamp
列更新now()
:
select
substring( cast(date_add('minute', 30, now()) as varchar),12,5) as added_time,now()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.