UPDATE with no subquery throws error: Subquery returns more than 1 row

前端 未结 1 1016
被撕碎了的回忆
被撕碎了的回忆 2021-01-22 04:37

Can somebody explain to me this... :) (using MySQL 5.6.13)

UPDATE offer SET cosid=1 WHERE id=40;
Query OK, 1 row affected (0.07 sec)
Rows matched: 1  Changed: 1          


        
1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-22 04:54

    As ypercube has stated in the comments, and you have confirmed, triggers are the culprit here!

    0 讨论(0)
提交回复
热议问题