Can I make Google Drive Spreadsheets act like a MySQL database?

后端 未结 3 858
情话喂你
情话喂你 2020-12-24 08:07

Can I use a Google Drive spreadsheet as if it were (similar to) a MySQL database?

I\'m thinking of using it as a player database for an HTML/JavaScript web game. Th

3条回答
  •  执笔经年
    2020-12-24 08:17

    This is the right way to do it. Another post explaining the same idea. Essentially, we publish the spreadsheet and query it using a "select"-like syntax. For instance: this query which reads something like:

    https://spreadsheets.google.com/tq?tqx=out:html&tq=select+B,C,I&key=phNtm3LmDZEObQ2itmSqHIA
    

    This is for querying data (reading). For inserting, you can use google forms (create a form, see its html and submit using a http post request). I have not explored update yet.

    And yes, this has to be done server side.

提交回复
热议问题