App-Inventor 2和IMPORT多行,只有一个查询

时间:2014-01-23 05:15:32

标签: import google-fusion-tables app-inventor

我是App Inventor 2的新手。我希望能够通过单个查询将多行(等于或小于10)导入融合表。

即使我设法使用INSERT INTO正确创建块并遵循Google指示的语法(INSERT INTO table_ID(Column1,Column2,Column3,Column4)VALUES“('value1','value2','value3', 'value4')“; INSERT INTO table_ID(Column1,Column2,Column3,Column4)VALUES”('value5','value6','value7','value8')“;等等),这只是小于8行然后得到一个错误-big url - 。

所以,我不得不转向指示的导入方法。

但是,我很难尝试配置块。

我在这里看到了这个例子:http://puravidaapps.com/taifunFT2.php#import但是我无法理解WebQuery.PostText和printResult的过程是什么。

此外,AI2没有'make text'和'call _ text'block。

最后,在这个例子中,url似乎与指示的有点不同,这里:https://developers.google.com/fusiontables/docs/v1/using#ImportingRowsIntoTables;

/ fusiontables / docs / v1 / .. vs / upload / fusiontables / v1 / tables /.

1 个答案:

答案 0 :(得分:0)

插入行一章

中的

You probably have seen the Note

  

注意:要插入大量行,请改用import方法   比使用许多SQL INSERT更快,更可靠   语句。

但是,如果您使用 App Inventor 的内置Fusiontable控件,则只能使用working with rows中的可能性,而不能使用working with tables中的可能性。因此,您必须使用INSERT INTO语句。

或者,and this is described in that link(顺便说一句,我是该页面的作者;-)),您还可以使用App Inventor的Web组件访问fusiontables ,然后你有更多的可能性,包括提到的IMPORT ROWS

有关如何获取该示例的源代码的更多信息,请阅读该页面底部的绿色框。谢谢。

要了解AI1和AI2之间的差异,see here

相关问题