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.
72 lines
2.5 KiB
72 lines
2.5 KiB
use qingdao_meichen
|
|
|
|
|
|
|
|
UPDATE TMember SET FMemNO = REPLACE(FMemNO,'¡¾baobeimengɾ³ý¡¿',''),FMemo = REPLACE(FMemo,'¡¾baobeimengɾ³ý¡¿',''),FDeleted= 0
|
|
WHERE FMemo LIKE '%¡¾baobeimengɾ³ý¡¿%'
|
|
AND FDeleted = 1
|
|
|
|
UPDATE TMemberCard SET FCardNo = REPLACE(FCardNo,'¡¾baobeimengɾ³ý¡¿',''),FMemo = REPLACE(FMemo,'¡¾baobeimengɾ³ý¡¿',''),FDeleted= 0
|
|
WHERE FMemo LIKE '%¡¾baobeimengɾ³ý¡¿%'
|
|
AND FDeleted = 1
|
|
|
|
UPDATE TMemberCourse SET FMemo = REPLACE(FMemo,'¡¾baobeimengɾ³ý¡¿',''),FDeleted= 0
|
|
WHERE FMemo LIKE '%¡¾baobeimengɾ³ý¡¿%'
|
|
AND FDeleted = 1
|
|
|
|
SELECT * FROM TCompany
|
|
WHERE FNo NOT IN('002','003','004','005','010','012','013','015','017','018','019')
|
|
|
|
|
|
|
|
--ɾ³ý
|
|
UPDATE TMemberCard SET FDeleted = 1,FCardnO = FCardNo + '¡¾baobeimengɾ³ý¡¿',FMemo = FMemo + '¡¾baobeimengɾ³ý¡¿'
|
|
WHERE FCompId NOT IN(SELECT FId FROM TCompany WHERE FNo IN('002','003','004','005','010','012','013','015','017','018','019'))
|
|
AND FDeleted = 0
|
|
AND FMemID > 0
|
|
|
|
UPDATE TMemberCourse SET FDeleted = 1,FMemo = FMemo + '¡¾baobeimengɾ³ý¡¿'
|
|
WHERE FCompId NOT IN(SELECT FId FROM TCompany WHERE FNo IN('002','003','004','005','010','012','013','015','017','018','019'))
|
|
AND FDeleted = 0
|
|
AND FMemID > 0
|
|
|
|
|
|
--ɾ³ý
|
|
UPDATE TMember SET FDeleted = 1,FMemNo = FMemNo + '¡¾baobeimengɾ³ý¡¿',FMemo = FMemo + '¡¾baobeimengɾ³ý¡¿'
|
|
WHERE FCompId NOT IN(SELECT FId FROM TCompany WHERE FNo IN('002','003','004','005','010','012','013','015','017','018','019'))
|
|
AND FMemID NOT IN(SELECT FMemId FROM TMemberCard WHERE FDeleted = 0)
|
|
AND FMemID NOT IN(SELECT FMemId FROM TMemberCourse WHERE FDeleted = 0)
|
|
AND FMemID > 0
|
|
|
|
SELECT * FROM TCompany
|
|
|
|
|
|
UPDATE TCompany SET FNo = FNo + 'ÒÑ·ÖÀë',FDeleted = 1 WHERE FNo NOT IN('002','003','004','005','010','012','013','015','017','018','019')
|
|
|
|
|
|
use qingdao_baobeimeng
|
|
|
|
|
|
--ɾ³ý
|
|
UPDATE TMemberCard SET FDeleted = 1,FCardnO = FCardNo + '¡¾baobeimengɾ³ý¡¿',FMemo = FMemo + '¡¾baobeimengɾ³ý¡¿'
|
|
WHERE FCompId IN(3472334686330552320)
|
|
AND FDeleted = 0
|
|
AND FMemID > 0
|
|
|
|
UPDATE TMemberCourse SET FDeleted = 1,FMemo = FMemo + '¡¾baobeimengɾ³ý¡¿'
|
|
WHERE FCompId IN(3472334686330552320)
|
|
AND FDeleted = 0
|
|
AND FMemID > 0
|
|
|
|
--ɾ³ý
|
|
UPDATE TMember SET FDeleted = 1,FMemNo = FMemNo + '¡¾baobeimengɾ³ý¡¿',FMemo = FMemo + '¡¾baobeimengɾ³ý¡¿'
|
|
WHERE FCompId IN(3472334686330552320)
|
|
AND FMemID NOT IN(SELECT FMemId FROM TMemberCard WHERE FDeleted = 0)
|
|
AND FMemID NOT IN(SELECT FMemId FROM TMemberCourse WHERE FDeleted = 0)
|
|
AND FMemID > 0
|
|
|
|
USE QINGDAO_BAOBEIMENG
|
|
|
|
|
|
UPDATE TCompany SET FNo = REPLACE(FNo,'ÒÑ·ÖÀë','') ,FDeleted = 0 WHERE FDeleted = 1
|
|
SELECT * FROM TCompany
|
|
|