在Teradata中,如何将这两列合并为一个时间戳?谢谢

问题描述 投票:0回答:1

need help to combine date and time into 1 column only. For example: combine 'date1' and 'time1' to timestamp, like 7/17/2019 17:30:00

仅需要将日期和时间合并到1列中的帮助。例如:将“ date1”和“ time1”组合为时间戳,例如7/17/2019 17:30:00。

'date1'格式为[日期]

'time1'格式为[Char(6)]

sql timestamp teradata
1个回答
0
投票

尝试以下操作,您可能需要更改数据类型,但不确定。

select
  date1 || ',' || time1
from yourTable
© www.soinside.com 2019 - 2024. All rights reserved.