Ste*_*nko 4 sql timestamp date clickhouse
我将日期作为'2018-01-02 12:12:22'形式的字符串字段,在ClickHouse SQL中将其转换为long int时间戳的正确方法是什么?
:) SELECT toUInt64(toDateTime('2018-01-02 12:12:22'));
SELECT toUInt64(toDateTime('2018-01-02 12:12:22'))
??toUInt64(toDateTime('2018-01-02 12:12:22'))??
? 1514884342 ?
???????????????????????????????????????????????
1 rows in set. Elapsed: 0.001 sec.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1001 次 |
| 最近记录: |