{"title":"phantom unique key violation","description":"MySQL\u3068PostgreSQL\u306f\u767a\u751f\u3059\u308bOracle\u3068SQL Server\u306f\u767a\u751f\u3057\u306a\u3044 MySQL (8.0.26)https://nodoame.net/archives/8026 drop table tab1;create table tab1(col1 int primary key,col2 int); insert into tab1 values(1,1);insert into tab1 values(2,2); select * from tab1; update tab1 t1 set col1=(select case when t2.col1=1 then 2 whe\u2026","blog_title":"HTN20190109\u306e\u65e5\u8a18","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2021%2F10%2F23%2F170944\" title=\"phantom unique key violation - HTN20190109\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","version":"1.0","published":"2021-10-23 17:09:44","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/HTN20190109/","categories":["DB"],"width":"100%","blog_url":"https://htn20190109.hatenablog.com/","image_url":null,"url":"https://htn20190109.hatenablog.com/entry/2021/10/23/170944","author_name":"HTN20190109","height":"190"}