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/Import/琦品/奇品.sql

313 lines
14 KiB

1 year ago
SELECT * FROM TWebAppInfo
SELECT * FROM TCompany
SELECT * FRO
SELECT * FROM TWeChatUser
SELECT * FROM TImpCourse WHERE FItemID = 0
select * from TMemb WHERE FMemId = 439201511111324508
select * from TImpCourse WHERE FMemId = 439201511111324508
SELECT * FROM TImpCard WHERE FCardNo = 'jb0617'
SELECT * FROM TItem WHERE FName = '<EFBFBD><EFBFBD><EFBFBD>Ҽ羱<EFBFBD><EFBFBD>ѹ'
UPDATE A
SET A.FItemId = B.FItemId,
A.FCourseId = B.FId
FROM TImpCourse AS A,TCourse AS B, TItem AS C
WHERE C.FName = A.LCXMMC
AND C.FId = B.FItemId
AND A.FItemID = 0
update a
set a.fiTEMid = b.fiTEMiD
,A.FCOURSEID = B.FCOURSEId
FROM TImpCourse AS B,TMemberCourse AS A
WHERE A.FId = b.fid
AND A.FItemId = 0
SELECT * FROM TItem WHERE FId = 8290968487171423457
SELECT M.FCompId,M.FMemNo,M.FName,A.FId,B.FName,C.LCXMMC FROM TConsumeItem AS A,TItem AS B,TImpCourse AS C,TMember AS M
WHERE A.FMemCourseId IN(
SELECT A.FId
FROM TImpCourse AS A,TItem AS I
WHERE A.FItemId = I.FId
AND A.LCXMMC != I.FName
)
AND A.FItemId = B.FId
AND C.FId = A.FMemCourseId
AND M.FMemId = C.FMemId
UPDATE TItem SET FName = REPLACE(REPLACE( REPLACE( FName,' ',''),'<EFBFBD><EFBFBD>','('),'<EFBFBD><EFBFBD>',')')
UPDATE TImpCourse SET FItemName = REPLACE(REPLACE( REPLACE( FItemName,' ',''),'<EFBFBD><EFBFBD>','('),'<EFBFBD><EFBFBD>',')')
UPDATE TImpCourse SET LCXMMC = REPLACE(REPLACE( REPLACE( LCXMMC,' ',''),'<EFBFBD><EFBFBD>','('),'<EFBFBD><EFBFBD>',')')
SELECT IDENTITY(INT,1,1) AS FIndex, I.FNo,A.FItemName,I.FName,A.LCXMBM into #NewItem
FROM TImpCourse AS A,TItem AS I
WHERE 1=1
-- AND A.FId = 5201505311324373001
AND A.FItemID = I.FId
AND REPLACE(REPLACE( REPLACE(A.FItemName,' ',''),'<EFBFBD><EFBFBD>','('),'<EFBFBD><EFBFBD>',')') !=
REPLACE(REPLACE( REPLACE(I.FName,' ',''),'<EFBFBD><EFBFBD>','('),'<EFBFBD><EFBFBD>',')')
--AND I.FName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ջ<EFBFBD>'
AND FItemName NOT IN(SELECT FName FROM TItem)
GROUP BY I.FNo,A.FItemName,I.FName,A.LCXMBM
ORDER BY SUM(1) DESC
SELECT * FROM TImpCourse WHERE FItemName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>'
SELECT * FROM #NewItem
ALTER TABLE #NewItem ADD FNewItemNo VARCHAR(20)
UPDATE #NewItem SET FNewItemNo = 'L' + CAST(FIndex + 129 AS VARCHAR)
update #NewItem SET FIndex = FIndex + 129
INSERT TItem(FId,FNo,FNoOfPad,FName,FAbbr,FTypeId,FBriefCode,FDescription,FPriceMode,FIsService,FStatTimes,FCustom1,FCustom2,FCustom3,FEnabled,FPrice,FVipPrice,FTime,FDctId,FPointMode,FPointValue,FDeptId,FAllowBooking)
SELECT dbo.FNNewId(),FNewITEMNo,FNewITEMNo,FItemName,FItemName,0,dbo.FNGetFirstPinYin(FItemName),'''',1,1,1,'''','''','''',1,0,0,0,0,0,0,0,1
FROM #NewItem
SELECT * FROM TCourse
INSERT INTO TCourse(FId,FNo,FName,FBriefCode,FItemId,FPackId,FSequence,FTypeId,FTimes,FFreeTimes,FDurable,FValidityPeriodUnit,FValidityPeriod,FCreateDate,FExpiredDate,FDescription,FEnabled,FPrice,FAmount,FCalcMode)
SELECT dbo.FNNewId() AS FId,
I.FNo + 'L1',
I.FName + '-' + '<EFBFBD>Ƴ<EFBFBD>1' AS FName,
'' AS FBriefCode,
I.FId AS FItemId,
0 AS FPackId,
1 AS FSequence,
4822791688865541970 AS FTypeId,
1 AS FTimes,
0 AS FFreeTimes,
0 AS FDurable,
0 AS FValidityPeriodUnit,
0 AS FValidityPeriod,
getdate() AS FCreateDate,
NULL AS FExpiredDate,
'''' AS FDescription,
1 AS FEnabled,
0 AS FPrice,
0 AS FAmount,
1 AS FCalcMode
FROM TItem AS I
WHERE FNo IN(SELECT FNewItemNo FROM #NewItem)
UPDATE A
SET A.FNewItemId = B.FItemId,
A.FNewCourseId = B.FId
FROM TCourse AS B,TImpCourse AS A,TItem AS I
WHERE I.FId = B.FItemId
AND I.FName = A.FItemName
AND A.FItemName IN(SELECT DISTINCT A.FItemName FROM TImpCourse AS A,TItem AS B WHERE B.FId = A.FItemId AND A.FItemName != B.FName)
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>
SELECT * FROM TCOnsumeItem WHERE FMemCourseId IN(
SELECT A.FId
FROM TImpCourse AS A,TItem AS I
WHERE 1=1
-- AND A.FId = 5201505311324373001
AND A.FItemID = I.FId
AND A.FItemName != I.FName
AND A.FItemName != '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>'
)
SELECT * FROM TItem WHERE FName LIKE '%<EFBFBD><EFBFBD>ë%'
--AND I.FName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ջ<EFBFBD>'
GROUP BY I.FNo,A.LCXMMC,I.FName,A.LCXMBM
ALTER TABLE TImpCourse ADD FNewItemId BIGINT
ALTER TABLE TImpCourse ADD FNewCourseId BIGINT
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ջ<EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ջ<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD>GSD<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ+<EFBFBD><EFBFBD><EFBFBD>ﻹԭ' WHERE FItemName = '<EFBFBD><EFBFBD>ˮ+<EFBFBD><EFBFBD><EFBFBD>ﻹԭ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD>ҩ<EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ҩ<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ+<EFBFBD><EFBFBD><EFBFBD>ﻹԭ' WHERE FItemName = '<EFBFBD><EFBFBD>ˮ+<EFBFBD><EFBFBD><EFBFBD>ﻹԭ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>ë' WHERE FItemName = '<EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>ë'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>罺ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˥' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>罺ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˥'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㲹ˮ' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㲹ˮ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㲹ˮ' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㲹ˮ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¿Ƽ<EFBFBD><EFBFBD><EFBFBD>ˮ' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¿Ƽ<EFBFBD><EFBFBD><EFBFBD>ˮ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㲹ˮ' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㲹ˮ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۷<EFBFBD>' WHERE FItemName = '<EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۷<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۲<EFBFBD><EFBFBD><EFBFBD><EFBFBD>罺ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˥' WHERE FItemName = '<EFBFBD>۲<EFBFBD><EFBFBD><EFBFBD><EFBFBD>罺ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˥'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>ë' WHERE FItemName = '<EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>ë'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӻ<EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD>Ӻ<EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֮<EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֮<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD>ɫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֮Դ' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֮Դ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD>Ŷ<EFBFBD>)' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD>Ŷ<EFBFBD>)'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>ѹ)' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>ѹ)'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD>Ĺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ+<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD>ˮ+<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӳ<EFBFBD>ˮ' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӳ<EFBFBD>ˮ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۷<EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۷<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>壩ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = 'ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD>ԭҺ' WHERE FItemName = 'ԭҺ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD><EFBFBD><EFBFBD>ͨ' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD><EFBFBD><EFBFBD>ͨ'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD><EFBFBD>ս<EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD><EFBFBD>ս<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ۻ<EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ۻ<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)<EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>壩GSD<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>÷罡<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>÷罡<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>÷<EFBFBD><EFBFBD>ݱ<EFBFBD>SPA<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD>SPA<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>øε<EFBFBD><EFBFBD>ݱ<EFBFBD>SPA' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε<EFBFBD><EFBFBD>ݱ<EFBFBD>SPA<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>øε<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD>ε<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>øε<EFBFBD><EFBFBD>ݱ<EFBFBD>SPA' WHERE FItemName = '<EFBFBD>ε<EFBFBD><EFBFBD>ݱ<EFBFBD>SPA<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƣθ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƣθ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƣθ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = 'Ƣθ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><EFBFBD>ܰ<EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><EFBFBD>ܰ<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><EFBFBD>ܰ<EFBFBD>' WHERE FItemName = '<EFBFBD>Ĵ<EFBFBD><EFBFBD>ܰ<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ü<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ü<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ζŮ<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ζŮ<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ζŮ<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD>ζŮ<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ζŮ<EFBFBD><EFBFBD>SPA' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ζŮ<EFBFBD>˲ݱ<EFBFBD>SPA<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD>ˮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = 'ˮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰһ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD>۲<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD>ǰһ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD>۲<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֮<EFBFBD><EFBFBD>ŮӨ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʪ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD>֮<EFBFBD><EFBFBD>ŮӨ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʪ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ů<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD>'
UPDATE TImpCourse SET FItemName = '' WHERE FItemName = ''
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD>˲<EFBFBD><EFBFBD>滺SPA' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD>Ƴ<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ﻹԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD>ﻹԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ů<EFBFBD><EFBFBD>SPA' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ů<EFBFBD>˲ݱ<EFBFBD>SPA<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD>˲<EFBFBD><EFBFBD>滺SPA' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD>Ƴ<EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD>GSD<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD>GSD<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ҩ<EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ҩ<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ҩ<EFBFBD><EFBFBD>' WHERE FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ҩ<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>' WHERE FItemName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>Ƶ)<EFBFBD>ֱ<EFBFBD>'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><EFBFBD>ܰ<EFBFBD>' WHERE FItemName = '<EFBFBD>Ĵ<EFBFBD><EFBFBD>ܰ<EFBFBD>'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ů<EFBFBD><EFBFBD>SPA' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ů<EFBFBD>˲ݱ<EFBFBD>SPA<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '(<EFBFBD>沿)GSD<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHERE FItemName = '(<EFBFBD>沿)GSD<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ҩ<EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD>ҩ<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>' WHERE FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ҩ<EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD>ҩ<EFBFBD><EFBFBD>'
UPDATE TImpCourse SET FItemName = '(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ҩ<EFBFBD><EFBFBD>' WHERE FItemName = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿'
ALTER TABLE TImpCourse ADD FItemName VARCHAR(50)
UPDATE TImpCourse SET FItemName = LCXMMC
SELECT * FROM TImpCourse WHERE LCXMBM = '479'
SELECT * FROM TImpCourse WHERE LCXMMC = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>沿'
--AND A. LCXMMC = '<EFBFBD><EFBFBD><EFBFBD>沿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
--GROUP BY A.FItemId, A.LCXMMC,I.FName,I.FNo
select * from TImpCourse WHERE FItemId = 610 AND LCXMMC = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
SELECT * FROM TCompany
SELECT * FROM TMemberCardAccount WHERE FCardId = 253201402251358006
UPDATE TCompany SET FWeChatPayMchId = '1350440301'
SELECT * FROM TImpCard WHERE FCardNo = 'QB00001235'
ALTER TABLE TImpCard ADD FBalance2 DECIMAL(18,6)
UPDATE TImpCard SET FBalance2 = CAST(VIPZSJE AS DECIMAL(18,6))
WHERE VIPZSJE != 0.0
SELECT * FROM TCompany
SELECT * FROM TImpCard WHERE FBalance2 != 0
SELECT * FROM TUser WHERE FNo = '0288008'
SELECT FCompId FROM TUserAllowCompany WHERE FUserId = 5252777072562267853
SELECT * FROM TCp
INSERT TMemberCardAccount(FMemId,FId,FCardId,FAcctId,FDeposit,FBalance,FArrear,FCreateDate,FExpiredDate,FMemo)
SELECT FMemId,dbo.FNNewId(),FCardId AS FCardId,10,FBalance2,FBalance2,0,FCreateDate,NULL AS FExpiredDate,''
FROM TImpCard AS A
WHERE FCardId IN(SELECT FCardId FROM TMemberCard)
AND FBalance2 != 0
SELECT * FROM TGoodsSub WHERE FCompId = 5252777072562267853
INSERT TGoodsSub(FId,FCompId,FGoodsId)
SELECT dbo.FNNewId(),C.FId,I.FId
FROM TGoods AS I,TCompany AS C
WHERE I.FId != 0
AND C.FId = 5070814954448694070
AND NOT EXISTS(SELECT TOP 1 1 FROM TGoodsSub AS B WHERE B.FCompId = C.FId AND B.FGoodsId = I.FId)
SELECT * FROM TGoodsSub
DELETE TGoodsSub WHERE FCompId = 5070814954448694070
SELECT * FROM TConsumeGoods AS B,TConsumeBill AS A
WHERE B.FBILLID = A.FBILLID
AND A.FCompId = 5070814954448694070
INSERT TMemberCardAcctHist(FId,FMemId,FCardId,FAcctId,FTime,FCardTypeId,FCompId,FBillType,FBizType,FTransId,FTransNo,FInAmount,FOutAmount,FBalance,FArrear,FRecordTime,FMemo)
select dbo.FNNewId(),A.FMemId,A.FCardId,10,getdate(),A.FCardTypeId,A.FCompId,'DR','Import',0,'',A.FBalance2,0,A.FBalance2,0,getdate(),'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
FROM TImpCard AS A
WHERE FCardId IN(SELECT FCardId FROM TMemberCard)
AND FBalance2 != 0
SELECT * FROM TPayAccount