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/导入欠款储值卡ID.sql

18 lines
362 B

use dingxiang_xiaogao
SELECT * FROM TMemberArrear
UPDATE A
SET A.FCardId = B.FCardId
FROM TBKMember# AS B,TMemberArrear AS A
WHERE A.FMemId = B.FMemId
AND A.FCardId = 0
UPDATE A
SET A.FArrearCardId = B.FCardId
FROM TMemberSaleRepay AS A,TMemberArrear AS B
WHERE A.FArrearId = B.FId
AND A.FArrearCardId = 0
EXEC PSetEmpPerfCacheExpired 1