select A.FBILLNO,B.FSEQ,B.FSETTLENO
from t_ap_paybill a
left join t_ap_paybillentry b on b.fid=a.fid
where a.fbillno='FKD00014758'
UPDATE B SET FSETTLENO='EDB0001009576804'
from t_ap_paybill a
left join t_ap_paybillentry b on b.fid=a.fid
where a.fbillno='FKD00014758'