/ /内部結合によるmysqliクエリの更新 - mysql

内部結合を使ってmysqliクエリを更新する - mysql

クエリを実行して終了値= 1を設定する方法、その逆の場合はこのコードを試しましたが、動作しません:

UPDATE orders set orders.done=1 inner
JOIN mydate on orders.order_no=mydate.order_no and orders.date=mydate.order_date
where done.orders=0

回答:

回答№1は0

これを試して:

UPDATE orders
join mydate on orders.order_no=mydate.order_no and orders.date=mydate.order_date
set orders.done=1
where order.orders=0