MySQL 㧠Update æã®ä¸ã§ãµãã¯ã¨ãªã使ãã¨ãYou canât specify target table ï½ for update in FROM clause ã¨ããã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºããã¨ãããã¾ãããµãã¯ã¨ãªã®ä¸ã§æ´æ°ãããã¼ãã«ãèªãã§ãããããªå ´åã«çºçãã¾ãããã¨ãã° update temp_table set num = (select max(num) +1 from temp_table) where num=1; ERROR 1093 (HY000): You can't specify target table 'temp_table' for update in FROM clause PostgreSQL ã Oracle ã§ã¯ãã®ãããªã¨ã©ã¼ã¯èµ·ããã«æ´æ°ãå®äºãã¾ãã対å¦æ¹æ³ã¨ãã¦ã¯ãã³ãã©ãªãã¼ãã«ã使ãã MySQL ãããããã¨ããã³ãã©
{{#tags}}- {{label}}
{{/tags}}