回答編集履歴
3
修正
test
CHANGED
@@ -12,6 +12,10 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
+
------
|
16
|
+
|
17
|
+
|
18
|
+
|
15
19
|
最新PostgreSQL11のマニュアルも確認
|
16
20
|
|
17
21
|
- [ALTER TABLE](https://www.postgresql.org/docs/11/sql-altertable.html)
|
@@ -19,3 +23,7 @@
|
|
19
23
|
> All the forms of ALTER TABLE that act on a single table, except RENAME, SET SCHEMA, ATTACH PARTITION, and DETACH PARTITION can be combined into a list of multiple alterations to be applied together. For example, it is possible to add several columns and/or alter the type of several columns in a single command. This is particularly useful with large tables, since only one pass over the table need be made.
|
20
24
|
|
21
25
|
Google翻訳まま:**RENAME、SET SCHEMA、ATTACH PARTITION、およびDETACH PARTITIONを除く**、単一のテーブルに作用するすべての形式のALTER TABLEを組み合わせて、複数の変更をまとめて適用することができます。たとえば、1つのコマンドで複数の列を追加したり、複数の列の型を変更したりすることができます。大きなテーブルでは、テーブルを1回だけ通過すればよいため、特に便利です。
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
やはり、できないようです。
|
2
追記
test
CHANGED
@@ -9,3 +9,13 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
できない(RENAMEなので)
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
最新PostgreSQL11のマニュアルも確認
|
16
|
+
|
17
|
+
- [ALTER TABLE](https://www.postgresql.org/docs/11/sql-altertable.html)
|
18
|
+
|
19
|
+
> All the forms of ALTER TABLE that act on a single table, except RENAME, SET SCHEMA, ATTACH PARTITION, and DETACH PARTITION can be combined into a list of multiple alterations to be applied together. For example, it is possible to add several columns and/or alter the type of several columns in a single command. This is particularly useful with large tables, since only one pass over the table need be made.
|
20
|
+
|
21
|
+
Google翻訳まま:**RENAME、SET SCHEMA、ATTACH PARTITION、およびDETACH PARTITIONを除く**、単一のテーブルに作用するすべての形式のALTER TABLEを組み合わせて、複数の変更をまとめて適用することができます。たとえば、1つのコマンドで複数の列を追加したり、複数の列の型を変更したりすることができます。大きなテーブルでは、テーブルを1回だけ通過すればよいため、特に便利です。
|
1
修正
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
- [ALTER TABLE](https://www.postgresql.jp/document/9.3/html/sql-altertable.html)
|
6
6
|
|
7
|
-
> RENAMEおよびSET SCHEMA以外の全ての操作は、結合して複数の変更リストにまとめて、並行に処理することができます。
|
7
|
+
> **RENAMEおよびSET SCHEMA以外の全ての操作**は、結合して複数の変更リストにまとめて、並行に処理することができます。 例えば、複数の列の追加、型の変更を単一のコマンドで実行することができます。 これは特に巨大なテーブルでは便利です。変更のために必要なテーブル全体の走査が1回で済むからです。
|
8
8
|
|
9
9
|
|
10
10
|
|