比如A表有字段username   yearB表有字段id username password .... year.我想当A.username=B.username的时候,用A表的year去填充B表的year.这条语句怎么写?
我这样写提示语法错误(在MySQL下)update B set B.year=A.year from A,B where A.username=B.username