使用insert into时报错To form a pair, both operands must be a scalar是什么意思

使用insert into时报错To form a pair, both operands must be a scalar是什么意思

脚本:

t = table(1:0, `time`id, [TIMESTAMP, INT])
insert into t values(2022-08-17T18:07:04.047, 1)
请先 登录 后评论

1 个回答

Yating Xie

2022-08-17T18:07:04.047 不符合DolphinDB中TIMESTAMP类型的数据格式,需要改为2022.08.17T18:07:04.047

如果您的原始数据文件里就是2022-08-17T18:07:04.047的话,可以用temporalParse 转换一下格式

temporalParse("2018-2-6T13:30:10.001","y-M-dTH:m:s.SSS")
请先 登录 后评论
  • 1 关注
  • 0 收藏,856 浏览
  • BMO 提出于 2022-08-17 18:09

相似问题