douli4337 2014-08-20 11:35
浏览 25

更新查询在Fusion Table中不起作用

I am updating the fusion table particular data using update query,but it is giving me the error :

   "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."

This is my code so far:

    var script = document.createElement('script');
    var url = ['https://www.googleapis.com/fusiontables/v1/query?'];
    url.push('sql=');
    var query = 'UPDATE'+'1joZ2Og1R7riq39OuiiYPoccj4AD9Y1oYXGi26cTF'+'SET display = yes'+'WHERE CFSAUID = A0A';
    var encodedQuery = encodeURIComponent(query);
    //url.push(encodedQuery);
    url.push('key=AIzaSyAm9yWCV7JPCTHCJut8whOjARd7pwROFDQ');
    //script.src = url.join('');
    //var body = document.getElementsByTagName('body')[0];
   // body.appendChild(script);

    /* $.ajax({
   type: 'POST',
   url: url.join(''),
  dataType: 'jsonp'
  });*/

$.ajax({
url : url.join(''), //Target URL for JSON file
type: 'POST',
dataType: 'jsonp',
data: encodedQuery,
async : false,
success : function(data){
   console.log(data);
},
error : function(xhr, status){

    console.log(status);
}

});

Can any one please let me know, the cause of the error.

Best Regards, Saurav

  • 写回答

1条回答 默认 最新

  • dongshengli6384 2014-08-25 16:13
    关注

    There are three things to comment on:

    1. I am not sure whether your SQL query is right. Say you have to leave space between "update" and the table ID, and you should have & between SQL and key
    2. For the previous version of fusion table, it should be enough to perform query by passing a key obtained from OAuth2. But the new version requires a developer API KEY to do so, I believe.

    Good luck.

    Ni

    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测