|
|
|
|
use YuXi_FaJiXian
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT COUNT(1) FROM TConsumeBill WHERE FBillId LIKE '%55%'
|
|
|
|
|
|
|
|
|
|
SELECT COUNT(1) FROM TConsumeBill
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT * FROM TCompany
|
|
|
|
|
|
|
|
|
|
UPDATE TConsumeBill SET FCompId = 1 + FCompId WHERE FBillId NOT LIKE '%55%'
|
|
|
|
|
UPDATE TMemberSaleBill SET FCompId = FCompId + 1 WHERE FBillId NOT LIKE '%55%'
|
|
|
|
|
|
|
|
|
|
UPDATE TMemberCard SET FCompId = FCompId + 1,FDeleted = 1,FMemo = FMemo + '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FMemId NOT LIKE '%55%' AND FDeleted = 0
|
|
|
|
|
UPDATE TMember SET FCompId = FCompId + 1 ,FDeleted = 1,FMemo = FMemo + '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FMemId NOT LIKE '%55%' AND FDeleted = 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UPDATE TConsumeBill SET FCompId = FCompId - 1 WHERE FBillId NOT LIKE '%55%' AND FCompId NOT IN(SELECT FId FROM TCompany)
|
|
|
|
|
UPDATE TMemberSaleBill SET FCompId = FCompId - 1 WHERE FBillId NOT LIKE '%55%' AND FCompId NOT IN(SELECT FId FROM TCompany)
|
|
|
|
|
|
|
|
|
|
UPDATE TMemberCard SET FCompId = FCompId + 1,FDeleted = 1,FMemo = FMemo + '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FMemId NOT LIKE '%55%' AND FDeleted = 0
|
|
|
|
|
UPDATE TMember SET FCompId = FCompId + 1 ,FDeleted = 1,FMemo = FMemo + '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FMemId NOT LIKE '%55%' AND FDeleted = 0
|
|
|
|
|
|
|
|
|
|
UPDATE TMember SET FCompId = FCompId - 1 ,FDeleted = 0,FMemo = REPLACE(FMemo , '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>','') WHERE FMemId NOT LIKE '%55%' AND FDeleted = 1 AND FMemo LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
UPDATE TMemberCard SET FCompId = FCompId - 1,FDeleted = 0,FMemo = REPLACE(FMemo, '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>','') WHERE FMemId NOT LIKE '%55%' AND FDeleted = 1 AND FMemo LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT * FROM TMemberCard WHERE LEN(FCompId) != 19
|
|
|
|
|
|
|
|
|
|
WHERE FMemo LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
|
|
|
|
|
SELECT CAST(FCompId AS VARCHAR) + 1
|
|
|
|
|
FROM TConsumeBill
|
|
|
|
|
GROUP BY CAST(FCompId AS VARCHAR) + 1
|
|
|
|
|
|
|
|
|
|
SELECT * FROM TCompany
|
|
|
|
|
|
|
|
|
|
SELECT CAST(3472330288284041216
|
|
|
|
|
AS BIGINT)
|
|
|
|
|
|
|
|
|
|
SELECT FCompId
|
|
|
|
|
FROM TConsumeBill
|
|
|
|
|
GROUP BY LEFT(FCompId,18)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT FBillNO FROM TConsumeBill
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TRUNCATE TABLE TEmpPerfDetailDateCache#
|
|
|
|
|
|
|
|
|
|
|