not exists比not in效率要高 |
發(fā)布時(shí)間: 2012/8/4 17:02:44 |
數(shù)據(jù)庫(kù):Oracle select * from quyu_t a where a.version='256' and not exists(select 'x' from quyu_t_his b -------用not in效率低- select * from quyu_t where username not in (select username from quyu_t_his) 2個(gè)一比較簡(jiǎn)直是太明顯了。 本文出自:億恩科技【www.cmtents.com】 服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |