1. 程式人生 > >多表關聯更新sql

多表關聯更新sql

cheng upan update 表關聯 關聯 sel mce date 多表

UPDATE S_fangyuanxinxi

SET wuyeleixing =
(SELECT s_dalou.yongtu
FROM s_dalou
WHERE s_fangyuanxinxi.loupanmingcheng = s_dalou.loupanmingcheng AND
s_fangyuanxinxi.donghao = s_dalou.mingcheng)

多表關聯更新sql