表 a 字段:ptype, uname ,unint ,barcorde 表 b 字段:type, uname ,fullname,barcorde 2两表靠b.type=a.ptype 进行关联。 职何让 把表b中的表barcorde值更新到 a表中.barcorde字段中 update peUnit set a.BarCode=b.barcode FROM peUnit a,ptype b where a.PtypeId=b.typeId AND a.nUnit=1 update peUni