MySQL从一张表更新字段到另外一张表中
这两天搞了个采集站,呵呵,需要用到这个功能(命令),经过一番搜索,终于搞定~~
update a, b
set a.title=b.title, a.name=b.name
where a.id=b.id
需要更新的表为a,更新源为表b,搞定~~
这两天搞了个采集站,呵呵,需要用到这个功能(命令),经过一番搜索,终于搞定~~
update a, b
set a.title=b.title, a.name=b.name
where a.id=b.id
需要更新的表为a,更新源为表b,搞定~~