select * from b where not exists( select 1 from a where a.name=b.name and a.no=b.no and a.times=b.times and a.date=b.date) SELECT * from B EXCEPT SELECT * from A;
SQL code: select * from tb except select * from ta
SQL code: select * from b where not exists(select 1 from a where name=b.name and no=a.no and times=a.times and [date]=t.[date])
ͨ¹ýNAME×Ö¶ÎÌõ¼þ²éѯһ¸öÊý¾Ý±í£¬¼ÙÉèÎÒÓÐ100¸öÐÕÃû£¬ÓÐÒÔÏÂÁ½¸ö·½·¨£¬ ·½·¨1£º °Ñ100¸öName ×é³ÉÒ»¸öSQLÓï¾ä£¬±ÈÈç Select * from tmp_table where Name='ÕÅÈý' or Name ='ÀîËÄ' Or ...Or Name='µÚÒ»°Ù¸öÐÕÃû' ......