SELECT結果でINSERT実行前t1テーブルid ---- 2 3 (2 rows) t2テーブルid | num ----+----- (0 rows) 実行INSERT INTO t2 ( id, num ) SELECT id, 999 FROM t1; 実行後id | num ----+----- 2 | 999 3 | 999 (2 rows) |
|
SELECT結果でINSERT実行前t1テーブルid ---- 2 3 (2 rows) t2テーブルid | num ----+----- (0 rows) 実行INSERT INTO t2 ( id, num ) SELECT id, 999 FROM t1; 実行後id | num ----+----- 2 | 999 3 | 999 (2 rows) |
|