¸ø¸öʾÀý£¿ °´±íÖÐÖ¸¶¨µÄij¼¸¸ö×Ö¶ÎÖµ½øÐÐÇø·Ö select a.* from a where a.id not in (select id from b) insert into des_table select * from database1.dbo.table1 a where not exsits (select 1 from database2.dbo.table2 where col1= a.col1 and col2=a.col2 and...) union all select * from database2.dbo.table2 b where not exsits (select 1 from database1.dbo.table1 where col1= b.col1 and col2=b.col2 and...) up¡ ÈýÂ¥£¬Ð§ÂÊÈçºÎ°¡£¬ÎÒÕâ¿ÉÊÇ1000¶àÍòÊý¾Ý°¡ È«1000¶àÍòҪʲôЧÂÊ£¿ µÈ½á¹û³öÀ´¾ÍºÃÁË£¬Äѵ½Äã¾³£ÓÃÕâ¸ö£¿ 7Â¥ÄãûÓÐÃ÷°×ÎÒµÄÒâ˼£¬ÎÒ²»ÊÇ˵¾³£Óã¬ÎÒ¾ÍÊÇÓÃÒ»´Î£¬Èç¹û½á¹û³öÀ´ÒªºÜ³¤Ê±¼ä£¬±ÈÈ缸ÌìʲôµÄ£¬Äǿ϶¨ºÜÂé·³Á˰¡£¬ºÇºÇ