Mysql association table update data from another table

mysql:

UPDATE member a,`chanelh5` b SET b.channel_id = a.channel_id
WHERE a.pcode = b.pcode

Guess you like

Origin www.cnblogs.com/qinls/p/12549741.html