mysqlで既に登録されている値を置換して再登録 投稿日 2019/11/06 投稿者 rengotaku 1 分で読めます REPLACE を利用する。update users, ( select id from users where name regexp ' ' ) as having_spaces set name = REPLACE(name, " ", "") where users.id = having_spaces.id database mysql シェア