數(shù)據(jù)庫:Oracle
數(shù)據(jù)量:52000條記錄
用not exists比not in執(zhí)行的效率要高的多
select * from quyu_t a where a.version='256' and not exists(select 'x' from quyu_t_his b
where a.username=b.username);
-------用not in效率低-
select * from quyu_t where username not in (select username from quyu_t_his)
2個(gè)一比較簡直是太明顯了。
更多
0
-
上一篇:具體環(huán)境分析不使用MySQL的理由
下一篇:用Oracle管理服務(wù)器將數(shù)據(jù)導(dǎo)入與導(dǎo)出
相關(guān)資訊 相關(guān)圖片 Oracle Linux 配置 UD使用LVS-NAT+ipvsadmMongoDB分片集群(SharMySQL Cluster 與 Mon在安裝Oracle軟件的時(shí)利用DB2控制中心還原探索Oracle之ASM01Oracle 介質(zhì)恢復(fù)圖解本文評(píng)論 全部評(píng)論 發(fā)表評(píng)論
請(qǐng)您注意:
遵守國家有關(guān)法律、法規(guī),尊重網(wǎng)上道德,承擔(dān)一切因您的行為而直接或間接引起的法律責(zé)任。
LinuxIDC.com擁有管理筆名和留言的一切權(quán)利。
點(diǎn)評(píng): 字?jǐn)?shù)
姓名:
-
最新資訊 Ubuntu把家目錄文件夾名稱改為英文
Vim的快速注釋插件NerdCommenter
Ubuntu下alias的通用性問題
Ubuntu中Terminal和GNOME文件管理器的互通方法
Linux 0.11 在Ubuntu-11和gcc-4.6.1下編譯調(diào)試至正
在Ubuntu 10.10下安裝SimpleScalar
C++中的單例模式
UNIX網(wǎng)絡(luò)編程初探---獲取服務(wù)器時(shí)間
返璞歸真的Linux BFS調(diào)度器
Linux 下Oracle 開機(jī)自啟動(dòng) 與 oratab, dbstart 腳
Linux平臺(tái) Oracle 數(shù)據(jù)庫 安裝文檔
Oracle Linux 6.1 平臺(tái)安裝 Database 11gR2 步驟 說
Linux 平臺(tái) Oracle 安裝 報(bào)錯(cuò) Check if the DISPLAY
Oracle Linux 6 下 Oracle RDBMS Server 11gR2 Prei
Oracle Validated Configurations 安裝使用 說明
VirtualBox 啟動(dòng)報(bào)錯(cuò) could not find an open hard
Oracle Linux 配置 UDEV SCSI Rules 說明
Oracle 用戶密碼過期后不允許修改密碼
訪問V$LOCK視圖Oracle 11g出現(xiàn)性能問題
本文出自:億恩科技【www.cmtents.com】
服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|