mysql-update_join
MySQL は Joinを使ったUpdateが特殊
>|sql|
update hoge_model innser join fuga_model
on hoge_model.id = fuga_model.id
set hoge_model.comment = fuga_model.comment
where hoge_model.name = 'fugo'
||<
いっつも忘れるので。
MySQL は Joinを使ったUpdateが特殊
>|sql|
update hoge_model innser join fuga_model
on hoge_model.id = fuga_model.id
set hoge_model.comment = fuga_model.comment
where hoge_model.name = 'fugo'
||<
いっつも忘れるので。