所以这是我的表结构,如果它有帮助的话: tables
UPDATE songs -> SET artist_id = -> (SELECT artist_id FROM artists WHERE artists.name = songs.artist); Query OK, 0 rows affected (0.00 sec) Rows matched: 27 Changed: 0 Warnings: 0
我的代码一直匹配行,但从未改变实际表中的任何内容
你知道为什么不起作用吗?