兩張表數據不一致進行對比


兩張表數據不一致進行對比,找不不一樣的數據,

使用外連接查詢

SELECT * from ys_yhxx yh1 left join ys_yhxx_copy1 yh2 on yh1.customerNo=yh2.customerNo WHERE yh2.customerId is null;
SELECT * from ys_yhxx_copy1 yh1 left join ys_yhxx yh2 on yh1.customerNo=yh2.customerNo WHERE yh2.customerId is null;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM