【数据库】查询插入一列
alter table tablename
add 列名 类型;
go
update tablename
set tablename.col=tablename2.col
from tablename2
where tablename.col1=tablename2.col1
alter table tablename
add 列名 类型;
go
update tablename
set tablename.col=tablename2.col
from tablename2
where tablename.col1=tablename2.col1