0
如何将tepoata中的纪元时间值隐藏到时间戳记(6)中?将tepoata中的纪元时间值隐藏到时间戳(6)中
让我们1336987231051为例信号出现时间(注意,这是以毫秒为单位,在这里作为划时代的时间是以秒为单位),我做了这样的事情
// miliseconds epoch time
select cast(1336987231051 as timestamp(6))
// seconds epoch time
select cast((1336987231051/1000) as timestamp(6))
,我得到这个错误信息的双方的上面的SELECT语句:
[Error] Script lines: 12-12 ------------------------
[Teradata Database] [TeraJDBC 13.10.00.31] [Error 5407] [SQLState HY000] Invalid operation for DateTime or Interval.
我http://www.epochconverter.com/验证1336987231051是有效纪元时间。
什么是正确的SQL在这teradata?