SQL code: select * from tb1 where not exists (select * from tb2)
¿ÉÄÜÃèÊö´íÁË£¬ÕâÁ½¸ö±íÓ¦¸ÃÊÇÕâÑùµÄ ÈçÏÂ: tb1 guid col col1 dadf abc 111 1erw cde 111 21qe qaz 222 qweq tgb 222
tb2 guid col2 col3 w5wr abc 111 w34f qaz 222 SQL code: select * from tb1 where not exists (select * from tb2 where tb1.col=tb2.col2 and tb1.col1=tb2.col3)
sql2005 select *from v_ddxx where d_sfsc='0' and (g_ssbm='1001' or g_ssbm='1002') and (xxf>0 and xxfwzf <>0 ),Ö´ÐÐËÙ¶ÈÂýµÄÒªËÀ£¬µ«ÊÇÈç¹û°Ñ(xxf>0 and ......