Apache Doris 中文技术论坛
Questions Tags Users Badges

【已解决】datetimeV2如何转化成毫秒时间戳

Asked Mar 6, 2024 Modified Mar 8, 2024
Viewed 127
2.0

求助大神,datetimeV2如何转化成毫秒时间戳

edited Mar 8, 2024
Kaven5
asked Mar 6, 2024
1 Answers

看文档没有直接转为毫秒的函数,只能先 UNIX_TIMESTAMP,然后加上 extract(microsecond from cast('2022-09-22 17:01:30.000123' as datetimev2(6)));

或者加上 microsecond(cast('1999-01-02 10:11:12.000123' as datetimev2(6)))

相关函数见文档:EXTRACT,MICROSECOND,UNIX_TIMESTAMP

edited Mar 8, 2024
zhb123319
answered Mar 6, 2024
Related Questions
Doris Routine Load自动恢复机制
我的doris版本为2.0.6 在备份操作时,会导致所以fe节点宕机,这种情况该怎么排查,为什么备份会导致这个问题?
1 answers
doris fe节点变更成高可用配置
1 answers
各位大哥在通过k8s安装doris3.0的时候,有没有遇到cg启动不起来,提示Set max number of open file descriptors to a value greater than 60000.
1 answers
doris主键表可以bucket配置太小,怎么修改?
1 answers
doris2.0.2.1大量delete语句和stream load执行在5分钟左右
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.