以下使用于mysql
update tepoi,pinf set tepoi.x=pinf.fx,tepoi.y=pinf.fy where tepoi.pid=pinf.dmgis_id and tepoi.pid>10000;
假设有表a,b
其结构
a(id,email,name) b(id,email)
update a inner join b on a.id=b.id set