update a set a.OrgId=b.OrgId from [dbo].[Base_User] a left join [dbo].[Oil_Org] b on b.OrgCode=a.LoginAccount