[英]How I export my Firebase data in Excel Sheet
I want my Firebase database in Excel sheets.我想要我的 Firebase 数据库在 Excel 张中。 I have all these children: Names
, Branch
, Batch
, College
as attributes of all users.我有所有这些孩子: Names
、 Branch
、 Batch
、 College
作为所有用户的属性。 I want to export these in Excel Sheets.我想在 Excel 表中导出这些。
Here's an example of items in the database:这是数据库中项目的示例:
And this is how I want the Excel Sheet to look:这就是我希望 Excel 工作表的外观:
Export your firebase to JSON. 将您的firebase导出为JSON。 Just click the settings on the right of your database. 只需单击数据库右侧的设置即可。
Then, convert the JSON to CSV. 然后,将JSON转换为CSV。 There are a lot of csv converter online. 网上有很多csv转换器。 You can try https://json-csv.com/ . 您可以尝试https://json-csv.com/ 。 Save the csv and open with Excel. 保存csv并使用Excel打开。
在firebase数据库中,您可以看到导出到JSON文件,导出时将其下载然后使用在线转换器更改为excel文件。
I would like to explain more Since its unclear to some people. 我想解释更多因为有些人不清楚。 Step 1. Select Realtime Database (You won't find any download button in Cloud Firestore). 步骤1.选择实时数据库(您不会在Cloud Firestore中找到任何下载按钮)。 for that, Select Database > Realtime Database 为此,选择数据库>实时数据库
Step 2. In there, you'll find a three-dotted button in the right top corner. 第2步。在那里,你会在右上角找到一个三点式按钮。 Select your option (Import/ Export) 选择您的选项(导入/导出)
All the answers here are mentioning online converter tools.这里的所有答案都提到了在线转换器工具。 You can also use Excel's built-in data importer.您还可以使用 Excel 的内置数据导入器。 I found it useful when I have to export it in a excel table.当我必须将它导出到 excel 表中时,我发现它很有用。
Say I have the following data:假设我有以下数据:
Similar like other answers, click the triple dot > Export JSON..与其他答案类似,单击三点 > 导出 JSON..
Then, open Excel. Go to Data > Get Data > From File... > From JSON然后,打开Excel。Go到数据>获取数据>从文件...>从JSON
Then, click on Into Table然后,点击进入表格
Click, Close and Load单击、关闭并加载
Result:结果:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.