T13_REF_COUNTRY_SAT_TEST COUNTRY_CD NAME_CN NAME_EN T13_REF_CITY_SAT_TEST CITY_CD NAME_CN NAME_EN T13_REF_AIRPORT_SAT_TEST IATA_CD NAME_CN NAME_EN 0 接口中不存在 1 记录数量只有1条(新增) 2 ... ---1 T13_REF_COUNTRY_SAT_TEST 总`327` SELECT COUNT(COUNTRY_CD) FROM T13_REF_COUNTRY_SAT_TEST 去重`259` SELECT COUNT(DISTINCT COUNTRY_CD) FROM T13_REF_COUNTRY_SAT_TEST 总`82` SELECT COUNT(COUNTRY_CD) FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='0' SELECT COUNTRY_CD,NAME_CN,NAME_EN FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='0' 总`177` SELECT COUNT(COUNTRY_CD) FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='1' 新增`129` SELECT COUNT(COUNTRY_CD) FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='1' AND COUNTRY_CD NOT IN (SELECT COUNTRY_CD FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='2') SELECT COUNTRY_CD,NAME_CN,NAME_EN FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='1' AND COUNTRY_CD NOT IN (SELECT COUNTRY_CD FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='2') 更新`48` SELECT COUNT(COUNTRY_CD) FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='1' AND COUNTRY_CD IN (SELECT COUNTRY_CD FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='2') SELECT COUNTRY_CD,NAME_CN,NAME_EN FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='1' AND COUNTRY_CD IN (SELECT COUNTRY_CD FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='2') 总`68` SELECT COUNT(COUNTRY_CD) FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='2' 去重`48` SELECT COUNT(DISTINCT COUNTRY_CD) FROM T13_REF_COUNTRY_SAT_TEST WHERE IS_EXISTS='2' ---2 T13_REF_CITY_SAT_TEST 总`10888` SELECT COUNT(CITY_CD) FROM T13_REF_CITY_SAT_TEST 去重`9269` SELECT COUNT(DISTINCT CITY_CD) FROM T13_REF_CITY_SAT_TEST 总`5496` SELECT COUNT(HUB_ID) FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='0' SELECT CITY_CD,NAME_CN,NAME_EN FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='0' 总`3773` SELECT COUNT(CITY_CD) FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='1' 新增`2186` SELECT COUNT(CITY_CD) FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='1' AND CITY_CD NOT IN (SELECT CITY_CD FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='2') SELECT CITY_CD,NAME_CN,NAME_EN FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='1' AND CITY_CD NOT IN (SELECT CITY_CD FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='2') 更新`1587` SELECT COUNT(CITY_CD) FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='1' AND CITY_CD IN (SELECT CITY_CD FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='2') SELECT CITY_CD,NAME_CN,NAME_EN FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='1' AND CITY_CD IN (SELECT CITY_CD FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='2') 总`1619` SELECT COUNT(CITY_CD) FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='2' 去重`1587` SELECT COUNT(DISTINCT CITY_CD) FROM T13_REF_CITY_SAT_TEST WHERE IS_EXISTS='2' ---3 T13_REF_AIRPORT_SAT_TEST 总`12286` SELECT COUNT(IATA_CD) FROM T13_REF_AIRPORT_SAT_TEST 去重`9889` SELECT COUNT(DISTINCT IATA_CD) FROM T13_REF_AIRPORT_SAT_TEST 总`6189` SELECT COUNT(IATA_CD) FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='0' SELECT IATA_CD,NAME_CN,NAME_EN FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='0' 总`3700` SELECT COUNT(IATA_CD) FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='1' 新增`1313` SELECT COUNT(IATA_CD) FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='1' AND IATA_CD NOT IN (SELECT IATA_CD FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='2') SELECT IATA_CD,NAME_CN,NAME_EN FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='1' AND IATA_CD NOT IN (SELECT IATA_CD FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='2') 更新`2387` SELECT COUNT(IATA_CD) FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='1' AND IATA_CD IN (SELECT IATA_CD FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='2') SELECT IATA_CD,NAME_CN,NAME_EN FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='1' AND IATA_CD IN (SELECT IATA_CD FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='2') 总`2397` SELECT COUNT(IATA_CD) FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='2' 去重`2387` SELECT COUNT(DISTINCT IATA_CD) FROM T13_REF_AIRPORT_SAT_TEST WHERE IS_EXISTS='2'
来源:https://www.cnblogs.com/taopanfeng/p/11714587.html