update (
SELECT a.sqdxh a1, b.dmbh a2 ,b.dmmc a3 ,c.ydlb a4
FROM JF_YDSQD a,dmb b ,bzjd_ydhqd c
where a.ydlb = b.dmbh and b.dmlbbh_id ='03'
and a.sqdxh = c.ydsqdxh
)
set a4=a3
update bzjd_ydhqd
set ydlb =
(SELECT b.dmmc
FROM JF_YDSQD a,dmb b
where a.ydlb = b.dmbh and b.dmlbbh_id ='03'
and a.sqdxh = bzjd_ydhqd.ydsqdxh );