日期:2014-05-16  浏览次数:20669 次

中心局,对换本\对端
update RMS_TRANSCIR_LOCAL
set SOURCE_NE=REMOTE_TRANS_EQU,REMOTE_TRANS_EQU=SOURCE_NE,SOURCE_TRANS_PORT=REMOTE_TRANS_PORT,REMOTE_TRANS_PORT=SOURCE_TRANS_PORT
where 
SOURCE_NE not in (select OLD_NAME from rms_transne_local where city_id=818 and IS_CENTERNE=1)
and 
REMOTE_TRANS_EQU in (select OLD_NAME from rms_transne_local where city_id=818 and IS_CENTERNE=1)



用in始终很慢,有什么更好的方式吗?