我已经在bigQuery中创建了一个嵌套表,我想在这个表中插入值。在
我知道正常情况下我们可以执行以下操作:
INSERT INTO `tablename`(webformID,visitID,visitorID,loginID,mycat,country,webformData) VALUES ('1',2,'3','4','5','6',[STRUCT('key2','b'),('k3','c'),('k4','d')])
其中webform数据是一个嵌套列。在
然而,在python中,我们如何做到这一点呢?在
我可以按如下方式创建一个列表:["STRUCT('key2','b')",('k3','c')]
但第0个索引在尝试插入时出现问题。在
请指教 谢谢你
可以按照与创建表相同的顺序插入数据。在
举个例子:
如果有帮助就告诉我!在
相关问题 更多 >
编程相关推荐