我必须用一个值更新一个字段,该值由3个表的连接返回。
示例:
selectim.itemid,im.sku as iSku,gm.SKU as GSKU,mm.ManufacturerId as ManuId,mm.ManufacturerName,im.mf_item_number,mm.ManufacturerIDfromitem_master im, group_master gm, Manufacturer_Master mmwhereim.mf_item_number like 'STA%'and im.sku=gm.skuand gm.ManufacturerID = mm.ManufacturerIDand gm.manufacturerID=34
我想用在上述条件中连接的其他值更新表item_master
的mf_item_number
字段值。
如何在MSSQLServer中执行此操作?