0
update accounts a
left join users b on
a.user_id = b.user_id
set `sold` = '1' where b.country = 'UA' AND a.site = 'od'
如何限制此查询?限额更新声明
试图
update accounts a
left join users b on
a.user_id = b.user_id
set `sold` = '1' where b.country = 'UA' AND a.site = 'od' LIMIT 500
,但得到错误错误:UPDATE并限制使用不当
你不能限制的更新,你* can * do是限制'select'并更新该选择的结果。这将需要一个存储过程或函数AFAIK(但我不是DBA ...)。 – alfasin