update ms_order
set
ms_order.note =
(select CONCAT(place_id, place_name) from cm_merchant_place
where id = ms_order.place_id and order_id='订单号' )
,place_id = '指定的场所id'
where order_id = '订单号'
and state =2;
CONCAT两表关联字段
最新推荐文章于 2023-02-01 17:28:29 发布