|
|
|
|
use saidao_main
|
|
|
|
|
|
|
|
|
|
SELECT COUNT(1) FROM TBKCustomerConfig WHERE FIsVALID = 1
|
|
|
|
|
|
|
|
|
|
ALTER TABLE TBKCustomerConfig ADD FCompanys INT NOT NULL DEFAULT 0
|
|
|
|
|
|
|
|
|
|
UPDATE TBKCustomerConfig SET FIsVALID = 0
|
|
|
|
|
|
|
|
|
|
SELECT count(1),sum(FCompanys) FROM TBKCustomerConfig WHERE FIsValid = 1
|
|
|
|
|
|
|
|
|
|
SELECT * FROM TBKCustomerConfig
|
|
|
|
|
|
|
|
|
|
SELECT cityName,custId,custName,left(url,CharIndex('/',url) - 1)as url,right(url,len(url) - CharIndex('/',url))as db,name,password
|
|
|
|
|
FROM
|
|
|
|
|
(
|
|
|
|
|
SELECT cityName,custId,custName, replace(replace(url,'jdbc:jtds:sqlserver://',''),':',',') as url,name,password
|
|
|
|
|
FROM TBKCustomerConfig
|
|
|
|
|
WHERE FIsValid = 1
|
|
|
|
|
AND (attribution like '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD>Ϫ%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD>ɽ%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD>ͨ%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD>ն<EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD>ٲ<EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD>ɽ%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD>˫<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD>º<EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%ŭ<EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
) AS T
|
|
|
|
|
ORDER BY cityName
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT cityName,custId,custName,left(url,CharIndex('/',url) - 1)as url,right(url,len(url) - CharIndex('/',url))as db,name,password
|
|
|
|
|
FROM
|
|
|
|
|
(
|
|
|
|
|
SELECT cityName,custId,custName, replace(replace(url,'jdbc:jtds:sqlserver://',''),':',',') as url,name,password
|
|
|
|
|
FROM TBKCustomerConfig
|
|
|
|
|
WHERE FIsValid = 1
|
|
|
|
|
AND (attribution like '%ɽ<EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD>ൺ%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD>Ͳ<EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD>̨%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%۩<EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD>ij<EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD>ׯ%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD>Ӫ%'
|
|
|
|
|
OR cityName LIKE '%Ϋ<EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%̩<EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
OR cityName LIKE '%<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
) AS T
|
|
|
|
|
ORDER BY cityName
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT cityName,custId,custName,left(url,CharIndex('/',url) - 1)as url,right(url,len(url) - CharIndex('/',url))as db,name,password
|
|
|
|
|
|
|
|
|
|
SELECT attribution ,SUM(1)
|
|
|
|
|
FROM
|
|
|
|
|
(
|
|
|
|
|
SELECT attribution,cityName,custId,custName, replace(replace(url,'jdbc:jtds:sqlserver://',''),':',',') as url,name,password
|
|
|
|
|
FROM TBKCustomerConfig
|
|
|
|
|
WHERE FIsValid = 1
|
|
|
|
|
|
|
|
|
|
) AS A
|
|
|
|
|
GROUP BY attribution
|
|
|
|
|
ORDER BY SUM(1) DESC
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select * from TClientInfo
|
|
|
|
|
WHERE FProvince = ''
|