UPDATE with no subquery throws error: Subquery returns more than 1 row
问题 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 Warnings: 0 UPDATE offer SET cosid=4 WHERE id=40; ERROR 1242 (21000): Subquery returns more than 1 row UPDATE offer SET cosid=5 WHERE id=40; Query OK, 1 row affected (0.04 sec) Rows matched: 1 Changed: 1 Warnings: 0 Every valid index is accepted except of four :( This is offer table: CREATE TABLE offer ( id bigint(20) NOT NULL AUTO