質問編集履歴

4

バージョン追加

2021/10/21 04:46

投稿

ms5025
ms5025

スコア292

test CHANGED
File without changes
test CHANGED
@@ -89,3 +89,13 @@
89
89
 
90
90
 
91
91
  idに別名をつけてみたり色々しましたが正しく取得できません
92
+
93
+
94
+
95
+
96
+
97
+ postgres (PostgreSQL) 13.4
98
+
99
+
100
+
101
+ です

3

項目変こぷ

2021/10/21 04:46

投稿

ms5025
ms5025

スコア292

test CHANGED
File without changes
test CHANGED
@@ -38,6 +38,8 @@
38
38
 
39
39
  id,
40
40
 
41
+                                 hage,
42
+
41
43
                                   COALESCE((SELECT hoage FROM test WHERE id = id), '') AS before_hoge
42
44
 
43
45
 
@@ -76,6 +78,8 @@
76
78
 
77
79
  id,
78
80
 
81
+ hage,
82
+
79
83
                                   COALESCE((SELECT hoage FROM test WHERE id = 111), '') AS before_hoge
80
84
 
81
85
 

2

間違い実名ds

2021/10/21 04:25

投稿

ms5025
ms5025

スコア292

test CHANGED
File without changes
test CHANGED
@@ -64,7 +64,7 @@
64
64
 
65
65
  test {$column} VALUES {$holder}
66
66
 
67
- ON CONFLICT ON CONSTRAINT ec_goods_oid_iid DO UPDATE SET
67
+ ON CONFLICT ON CONSTRAINT testsss DO UPDATE SET
68
68
 
69
69
  code = EXCLUDED.code,
70
70
 

1

aa matigai

2021/10/21 02:47

投稿

ms5025
ms5025

スコア292

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  test VALUES ('001','hoge1', 'hage1'),('002','hoge2', 'hage2'),('003','hoge3', 'hage3')
28
28
 
29
- ON CONFLICT ON CONSTRAINT ec_goods_oid_iid DO UPDATE SET
29
+ ON CONFLICT ON CONSTRAINT testsss DO UPDATE SET
30
30
 
31
31
  code = EXCLUDED.code,
32
32