Clickhouse cast列签名?
我有一个带有格式时区的列的表: +00:00 例如:
TZ |
---|
+04:30 |
+02:00 |
+10:00 |
-04:00 |
我可以在mysql中使用铸件:cast(tz as Indeced)
,它将给出此结果:
cast(tz)如签名) |
---|
4 |
2 |
10 |
-4 |
我尝试使用toint64
clickhouse,但会产生异常。
我如何通过Clickhouse达到相同的结果?
I have a table with column that contains timezone in format: +00:00
eg.:
tz |
---|
+04:30 |
+02:00 |
+10:00 |
-04:00 |
I can use CAST in MySQL: CAST(tz AS SIGNED)
and it will give this result:
CAST(tz AS SIGNED) |
---|
4 |
2 |
10 |
-4 |
I tried to use toInt64
for ClickHouse, but it produce an exception.
How I can reach the same result with ClickHouse ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)