You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INSERT
INTO
distributors
(
did
, dname
)
SELECT
did
, dname
FROM
my_distributors md
INNER JOIN
company cp
ONmd.company_cd=cp.company_cdANDcp.delete_flg= FALSE ON CONFLICT ONCONSTRAINT distributors_pkey DO
UPDATESET dname =excluded.dname
;
Want to be
INSERT
INTO
distributors
(
did
, dname
)
SELECT
did
, dname
FROM
my_distributors md
INNER JOIN
company cp
ONmd.company_cd=cp.company_cdANDcp.delete_flg= FALSE
ON
CONFLICT ONCONSTRAINT distributors_pkey DO
UPDATESET dname =excluded.dname
;
Memo
なお、通常のinsert文であれば問題ない
-- after1
INSERT
INTO
distributors
(
did
, dname
) VALUES
(5, 'Gizmo Transglobal')
, (6, 'Associated Computing, Inc')
ON
CONFLICT(did) DO
UPDATESET dname =excluded.dname
;
-- after2
INSERT
INTO
distributors
(
did
, dname
) VALUES (
9
, 'Antwerp Design'
)
ON
CONFLICT ONCONSTRAINT distributors_pkey DO nothing
;
The text was updated successfully, but these errors were encountered:
Version
As Is
Want to be
Memo
なお、通常のinsert文であれば問題ない
The text was updated successfully, but these errors were encountered: