mysql update和inner join要怎么写才对 急 救命 用了条这样的语句 $sql="update mission_book set a.mission_status=2 from mission_book a inner join mission_item b on 13=13 where a.player_id=$user_id and a.mission_id=$mission_id";
这样写报错 请问update 中的inner join该怎么写啊
------解决方案--------------------
SQL code
update mission_book a
inner join mission_item b
on 13=13
set a.mission_status=2
------解决方案-------------------- 你这个语句写的太神了…… 从来没见过update 接from的
------解决方案--------------------
SQL code
update a set a.mission_status=2 from mission_book a inner join mission_item b on a.13 = b.13 where a.player_id=$user_id and a.mission_id=$mission_id
------解决方案--------------------