根据另外一个表来更新,增加字段

update table1 
set field1=table2.field1,
field2=table2.field2
from table2
where table1.id=table2.id

添加字段:
alter table 表名 add 字段名 类型
删除字段:
alter table 表名 drop column 字段名
原文地址:https://www.cnblogs.com/yzwdli/p/5147512.html