insert ignore duplicate key

Insert into T1
select * from T2  
where NOT EXISTS (select 1 from T1 X where X.GUID=T2.GUID);

猜你喜欢

转载自www.cnblogs.com/kakaisgood/p/9935028.html