hogeãã¼ãã«ã®serialã«ã©ã ã«ããæååãï¼ãï¼å ¨è§ãã¤ãã³ï¼ããã-ãï¼åè§ãã¤ãã³ï¼ã«å¤æãããã¨ããå ´åã«ãåããã¼ãã«ããµãã¯ã¨ãªå ã«æ¸ãã¨ãERROR 1093 ãåºãã®ã§ããã®å¯¾çãåå¿é²ã¨ãã¦ãã¹ããã¾ãã ãµãã¯ã¨ãªã® FROM å¥ã¨æ´æ°ã®ã¿ã¼ã²ããã®ä¸¡æ¹ã«åããã¼ãã«ãæ¸ãã¨ã¨ã©ã¼ã¨ãªã hogeãã¼ãã«ã®serialã«ã©ã ã«ããæååãï¼ãï¼å ¨è§ãã¤ãã³ï¼ããã-ãï¼åè§ãã¤ãã³ï¼ã«å¤æãããã¨ããå ´åã«ã以ä¸ã®ãããªSQLãæ¸ãã¾ããã UPDATE hoge SET serial = REPLACE(serial, "ï¼", "-") WHERE id IN ( SELECT id FROM hoge WHERE serial LIKE '%ï¼%' );
{{#tags}}- {{label}}
{{/tags}}