mysql> update aa_song,aa_album set aa_song.albumId = aa_album.id -> where aa_song.album=aa_album.title -> ; Query OK, 84392 rows affected (3 hours 53 min 13.53 sec) Rows matched: 84392 Changed: 84392 Warnings: 0 Windows2003 , 2G内存。CPU占用始终在25%,这大概是系统默认给每个程序分配的最高限额了。