You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
sql-tools/更新bk欠款卡ID.txt

15 lines
334 B

UPDATE A
SET A.FCardId = B.FCardId
FROM TMemberArrear AS A,TBKMember# AS B
WHERE A.FMemId = B.FMemId
AND A.FBillType ='DR_KK'
AND A.FCardId = 0
UPDATE A
SET A.FArrearCardId = B.FCardId
FROM TMemberSaleRepay AS A,TMemberArrear AS B
WHERE A.FArrearId = B.FId
AND b.FBillType ='DR_KK'
AND A.FArrearCardId = 0