SQL A表数据更新到B表

来源:互联网 发布:数据港千股千评 编辑:程序博客网 时间:2024/05/16 08:53
update A 
set A.orgid=B.organization 
from SH_STOCK_product_out_stock A, JsInfo.dbo.shsp_out_stock B 
where A.autonum=B.autonum


update A 
set A.orgname= B.name 
from SH_STOCK_product_in_stock A, organization B 
where A.orgid=B.symbol
0 0