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