dolphinDB运行代码IPADDR数据类型有错误

Sun King 🌞
  • 387

t=table(take(['AMZN','NFLX', 'NVDA'], 10) as str , 1..10 as id, rand([IPADDR("192.168.1.253")],10) as ip )

错误信息
Two objects in an expression must be connected by an operator. Object 1: IPADDR Object 2: "192.168.1.2"

回复
阅读 588
1 个回答

IPADDR表示类型,应该用ipaddr函数转换:

t=table(take(['AMZN','NFLX', 'NVDA'], 10) as str , 1..10 as id, rand([ipaddr("192.168.1.253")],10) as ip )
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进