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/隐藏.sql

54 lines
1.7 KiB

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 + 'Òþ²Ø' WHERE FMemId NOT LIKE '%55%' AND FDeleted = 0
UPDATE TMember SET FCompId = FCompId + 1 ,FDeleted = 1,FMemo = FMemo + 'Òþ²Ø' 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 + 'Òþ²Ø' WHERE FMemId NOT LIKE '%55%' AND FDeleted = 0
UPDATE TMember SET FCompId = FCompId + 1 ,FDeleted = 1,FMemo = FMemo + 'Òþ²Ø' WHERE FMemId NOT LIKE '%55%' AND FDeleted = 0
UPDATE TMember SET FCompId = FCompId - 1 ,FDeleted = 0,FMemo = REPLACE(FMemo , 'Òþ²Ø','') WHERE FMemId NOT LIKE '%55%' AND FDeleted = 1 AND FMemo LIKE '%Òþ²Ø%'
UPDATE TMemberCard SET FCompId = FCompId - 1,FDeleted = 0,FMemo = REPLACE(FMemo, 'Òþ²Ø','') WHERE FMemId NOT LIKE '%55%' AND FDeleted = 1 AND FMemo LIKE '%Òþ²Ø%'
SELECT * FROM TMemberCard WHERE LEN(FCompId) != 19
WHERE FMemo LIKE '%Òþ²Ø%'
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#