select ... for update; select ... lock in share mode; ã®éããããããããªãã£ãã ãã¼ã¿ãæ´æ°ããæã«å¿ è¦ãªããã¯ã¯ãfor update ãã¼ã¿ãåç §ããæã«å¿ è¦ãªããã¯ã¯ãshare mode ã¨ä½æçã«ç解ã§ããã®ã ããã©ã¡ãã®ããã¯ãåã£ãã¨ãããä»ã®èª°ããã¼ã¿ãæ´æ°ãåé¤ã§ããªãã ã¾ããã©ã¡ãã®ããã¯ãã(for update ãã¦ããããä»ããåç §ã§ããªãã®ãã¨æããã)ä»ã®èª°ãããåç §ã¯å¯è½ã ãï¼ã¨ãªãã¨ããã®ï¼ã¤ã®ããã¯ãä½ãã©ãéãã®ï¼ï¼ ãã®çã㯠ãã ã«æ¸ãã¦ãã£ãã(ãªã³ã¯å ã¯Postgresã ããMySQLã§ãåããã¨) å ±æããã¯ã¨ã¯ãæä»ããã¯ï¼æ´æ°ãåé¤ãFOR UPDATEï¼ããããã¯ããï¼ãããä¸æ¹ãå ±æããã¯å士ã§ã¯äºãã«ãããã¯ããªãã¨ãããã®ã§ãã ãªãã»ã©ãshare mode ã¯ã»ã
{{#tags}}- {{label}}
{{/tags}}