update 多表链接

update A
set A.shl = A.shl - B.shl
from retmxls A,daysphz B
where A.spid = B.spid and
A.fdbs = B.fdbs and
A.rq = B.rq and
A.ontime > '17:37:18' and
A.shky = '002' and
A.fdbs = 'HKD'
posted @ 2017-06-27 15:05  zklve2  阅读(162)  评论(0编辑  收藏  举报