Update query failing with error : 1175

前端 未结 4 1682
礼貌的吻别
礼貌的吻别 2020-12-07 02:17

I am trying to update a table using the following query

update at_product A join
(
SELECT atbillfields.billeditemguid,count(*) AS numberOfPeopleBought
    ,s         


        
4条回答
  •  眼角桃花
    2020-12-07 02:37

    This error means you're operating in safe update mode and therefore you have two options:

    • you need to provide a where clause that includes an index for the update to be successful or
    • You can disable this feature by doing SET SQL_SAFE_UPDATES = 0;

提交回复
热议问题