{"provider_url":"https://hatena.blog","published":"2019-05-06 15:45:47","version":"1.0","categories":["DB"],"description":"Oracle select * from tab1 where col1 = 1 for update; MySQL select * from tab1 where col1 = 1 for update; \u884c\u304a\u3088\u3073\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u3059\u3079\u3066\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u30ed\u30c3\u30af\u3057\u307e\u3059\u3002\u3053\u306e\u52d5\u4f5c\u306f\u3001\u3053\u308c\u3089\u306e\u884c\u306b UPDATE \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u767a\u884c\u3057\u305f\u5834\u5408\u3068\u540c\u3058\u3067\u3059\u3002 select * from tab1 where col1 = 1 lock in share mode; \u8aad\u307f\u53d6\u3089\u308c\u308b\u3059\u3079\u3066\u306e\u884c\u306b\u5171\u6709\u30e2\u30fc\u30c9\u306e\u30ed\u30c3\u30af\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u307b\u304b\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3082\u305d\u306e\u884c\u3092\u8aad\u307f\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u30b3\u30df\u30c3\u30c8\u3059\u308b\u307e\u3067\u5909\u66f4\u2026","title":"select for update","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2019%2F05%2F06%2F154547\" title=\"select for update - 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>","blog_url":"https://htn20190109.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/HTN20190109/","type":"rich","author_name":"HTN20190109","image_url":null,"width":"100%","height":"190","blog_title":"HTN20190109\u306e\u65e5\u8a18","url":"https://htn20190109.hatenablog.com/entry/2019/05/06/154547","provider_name":"Hatena Blog"}