【发布时间】:2018-04-02 08:27:36
【问题描述】:
我有一个问题,我想将数据从我的 PC (windows) 发送到数据库 (back4app.com)。 为此,我可以将 API 请求与 cURL 一起使用。 我在数据库中保存数据的代码:
curl -X POST -d @testFile.txt \
-H "X-Parse-Application-Id: MY_KEY" \
-H "X-Parse-REST-API-Key: API_KEY" \
https://parseapi.back4app.com/classes/check
在我的 testFile.txt 我有这样的数据:
Text=TextLable&body=checkSaving2&data=20.12.2017
Text=TextLable&body=checkSaving2&data=20.12.2017
Text=TextLable&body=checkSaving2&data=20.12.2017
Text=TextLable&body=checkSaving2&data=20.12.2017
Text=TextLable&body=checkSaving2&data=20.12.2017
Text=TextLable&body=checkSaving2&data=20.12.2017
Text=TextLable&body=checkSaving2&data=20.12.2017
Text=TextLable&body=checkSaving2&data=20.12.2017
在我的数据库中,我在一列中接收所有数据:
但我需要每一列中的每一行。 例如:
Column - Text: Column - body: Column - data:
TextLable checkSaving2. 20.12.2017
TextLable checkSaving2. 20.12.2017
TextLable checkSaving2. 20.12.2017
TextLable checkSaving2. 20.12.2017
TextLable checkSaving2. 20.12.2017
那么,我怎么能像上面的例子一样,将我的数据保存在数据库中
【问题讨论】:
-
这和批处理文件有什么关系?
-
也许有人可以替代批处理文件
-
是的,但是 - 请注意 stackoverflow.com 不是免费的脚本/代码编写服务。如果您告诉我们到目前为止您已经尝试了什么(包括您已经在使用的脚本/代码)以及您遇到的问题,那么我们可以尝试帮助解决具体问题。您还应该阅读How do I ask a good question?。
标签: database batch-file parse-platform command-line back4app