merge into (SELECT * FROM QUERY_DB1.test_MPOS ) T1
using (SELECT FLAG FLAG1,IN_MNO FROM QUERY_DB1.test_MPOS_0319 ) T2 ON (T1.IN_MNO=T2.IN_MNO) WHEN MATCHED THEN UPDATE SET T1.FLAG=T2.FLAG1 where T2.FLAG != 'D' ;
---数据量超过50W,可以参考。
本文共 278 字,大约阅读时间需要 1 分钟。
merge into (SELECT * FROM QUERY_DB1.test_MPOS ) T1
using (SELECT FLAG FLAG1,IN_MNO FROM QUERY_DB1.test_MPOS_0319 ) T2 ON (T1.IN_MNO=T2.IN_MNO) WHEN MATCHED THEN UPDATE SET T1.FLAG=T2.FLAG1 where T2.FLAG != 'D' ;
---数据量超过50W,可以参考。
转载于:https://www.cnblogs.com/ss-33/p/8601730.html