回答編集履歴
2
追記
answer
CHANGED
@@ -6,4 +6,7 @@
|
|
6
6
|
update boards set board='変更後の文字', display_name='変更後の文字'
|
7
7
|
where board='board2' and display_name='Board 2'
|
8
8
|
;
|
9
|
-
```
|
9
|
+
```
|
10
|
+
|
11
|
+
件数が少ないようでしたら、DBツールを使用して直接手入力で修正も可能です。
|
12
|
+
postgresの標準ツールのpgadminでしたら、テーブルを選択して右クリック(データビュー→すべての列を表示)で表示された画面で、表示したい箇所をクリックすると変更が可能です。
|
1
修正
answer
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
データの変更には[update](https://www.postgresql.jp/document/9.6/html/sql-update.html)を使用します。
|
2
2
|
```SQL
|
3
3
|
update boards set board='変更後の文字', display_name='変更後の文字'
|
4
|
-
where board='board1' and display_name='
|
4
|
+
where board='board1' and display_name='Board 1'
|
5
5
|
;
|
6
6
|
update boards set board='変更後の文字', display_name='変更後の文字'
|
7
|
-
where board='board2' and display_name='
|
7
|
+
where board='board2' and display_name='Board 2'
|
8
8
|
;
|
9
9
|
```
|