update 表A
set M1=B.N1
From 表A A LEFT JOIN 表B B
on A.C=B.C