【发布时间】:2019-07-04 07:22:03
【问题描述】:
我有两张桌子,例如:
表 1:
Customer employee
ASD_1234 WF001
ASD_1235 WF002
ASD_1236 WF003
ASD_1237 NULL
ASD_1238 NULL
ASD_1239 NULL
ASD_1240 WF004
ASD_1234 WF001
ASD_1236 WF003
ASD_1240 WF004
表2:
Customer com_employee
ASD_1234 WF001
ASD_1235 WF002
ASD_1236 WF003
ASD_1237 WF005
ASD_1238 WF006
ASD_1239 WF007
ASD_1240 WF004
表 2 是由唯一 Customer 组成的元数据。现在我需要通过在 Customer 上加入 table2 来更新 table1 中的 空值。我怎样才能做到这一点? 谢谢
【问题讨论】:
标签: sql sql-server null sql-update