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.
85 lines
2.4 KiB
85 lines
2.4 KiB
select * from TMemberCard WHERE FCardNo IN(SELECT FCardNo FROM ChongQing_BoLIn..TMemberCard)
|
|
|
|
|
|
UPDATE TMemberCard SET FCardNo = 'A' + FCardNO WHERE FCardNo IN(SELECT FCardNo FROM ChongQing_BoLIn..TMemberCard)
|
|
|
|
|
|
UPDATE TMember SET FMemNo = 'A' + FMemNo WHERE FMemNo IN(SELECT FMemNo FROM ChongQing_BoLIn..TMember)
|
|
|
|
SELECT * FROM TMemberCardType
|
|
SELECT * FROM ChongQing_BoLin..TMemberCardType
|
|
|
|
|
|
|
|
SELECT * FROM TMember WHERE FCompId != 3472330288284041216
|
|
SELECT * FROM TMemberCard WHERE FCompId != 3472330288284041216
|
|
|
|
SELECT * FROM TCompany
|
|
|
|
PChangeCenterCompany '002'
|
|
|
|
SELECT * FROM
|
|
|
|
DELETE TMemberCard WHERE FCardId IN(
|
|
SELECT FCardId FROM TMemberCard WHERE FCompId = 3472331387795668992
|
|
)
|
|
|
|
DELETE TMember WHERE FCompId =
|
|
3472331387795668992
|
|
|
|
DELETE TMemberArrear WHERE FMemId IN(SELECT FMemId FROM TMember WHERE FCompId = 3472331387795668992)
|
|
|
|
DELETE
|
|
|
|
SELECT * FROM TMemberCARDType WHERE FId = 6510516211317473280
|
|
|
|
UPDATE TCompany SET FAddress = FName + ',导数据时候转为总公司,和新数据库对应'
|
|
WHERE FNo = '002'
|
|
|
|
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMemberCardType','TMemberCardType' ,' AND FId != 0 AND FNo != ''ZZ'''
|
|
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMember','TMember' ,' AND FMemId != 0'
|
|
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMemberCard','TMemberCard' ,' AND FCardId != 0'
|
|
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMemberCardAcctHist','TMemberCardAcctHist' ,' '
|
|
|
|
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMemberCardOldAcctHist','TMemberCardOldAcctHist' ,' '
|
|
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMemberOldTransHist','TMemberOldTransHist' ,' '
|
|
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMemberArrear','TMemberArrear' ,' '
|
|
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMemberArrearEmployee','TMemberArrearEmployee' ,' '
|
|
EXEC PCopyTable 'ChongQing_BoLin..TMemberPointHist','TMemberPointHist' ,'AND FMemId IN(SELECT FMemId FROM TMember) '
|
|
|
|
SELECT * FROM ChongQing_BoLin..TUser
|
|
|
|
|
|
|
|
SELECT * FROM ChongQing_BoLin..TPayAccount
|
|
|
|
SELECT FCardId INTO #Card
|
|
FROM TMemberCard WHERE FTypeId IN(
|
|
SELECT FId FROM TMemberCardType
|
|
WHERE FNo LIKE 'BK%'
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UPDATE TMemberCardAccount SET FAcctId = WHERE FAcctId = 3 AND FCardId IN(SELECT FCardId FROM ChongQing_Bolin_from_boka..TMemberCard)
|
|
|
|
UPDATE TMemberCardAcctHist SET FAcctId = WHERE FAcctId = 3 AND FCardId IN(SELECT FCardId FROM ChongQing_Bolin_from_boka..TMemberCard)
|
|
|
|
UPDATE TMemberCardOldAcctHist SET FAcctId = WHERE FAcctId = 3 AND FCardId IN(SELECT FCardId FROM ChongQing_Bolin_from_boka..TMemberCard)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|