# データベースを一括更新する方法

**URL:** <https://forum.bubble.io/t/topic/162494>\
**Category:** 日本語 (Japanese)\
**Created:** [July 31, 2021, 4:02am UTC](https://forum.bubble.io/t/topic/162494 "2021-07-31T04:02:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rio](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rio/32/228786_2.png) [@rio](https://forum.bubble.io/u/rio)\
**Post date:** [July 31, 2021, 11:35am UTC](https://forum.bubble.io/t/topic/162494/2 "2021-07-31T11:35:11Z")

</div>

> [@abtoyama](#):
>
> Bubbleデータベース内のデータを毎日一括（全部）して更新したいのですが、CSVファイルを単純にアップロードすると２重に登録されてしまいます。  
> いわゆる上書きする方法はないのでしょうか？

はじめまして！  
以下の手順でできます。ただし、developmentにデータテーブル（更新元）が存在し、それをLive画面にCSVエキスポートするという前提です。 **【ご注意】ダミーテーブルを作成して、確実に更新ができたことを確認してから本番データで行ってください！**

1. CSVのExportの近くにある”Copy and restore database”から入って、「Copy development data into live database」を選択
2. LIve画面で目的のテーブルを確認。その際、unique idがdevelopmentと同じになっていることを確認
3. development画面で目的のテーブルをExport。その際、unique idも一緒にExportする。
4. Live画面でModifyをクリックして、unique idのキーも一致させる

以上の流れでModifyされるはずです。  
以下も参考にしてみてください。

> [@\[New Feature\] Modify data via CSV upload (Editor)](http://forum.bubble.io/t/new-feature-modify-data-via-csv-upload-editor/25900):
>
> Hello, We added a new data administration feature to help you with maintaining your data. You can already upload data as CSV from the editor, and you can now modify data. You can find a MODIFY button in the App Data section of the Data Tab to do this. The file you upload should contain one column with the ID of the thing you want to modify. Then values in other columns will be applied to each thing, and they should be formatted as you do with upload CSV. One important thing to not…

---

_[View the full topic](https://forum.bubble.io/t/topic/162494)._
