久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機端+微網站+自適應網頁多模板選擇-建站388元起價!!!
當前位置:主頁 > 網站建設 > where條件順序不同、性能不同示例探討建站知識

where條件順序不同、性能不同示例探討建站知識

時間:2023-05-24 11:05:24 閱讀: 文章分類: 網站建設 作者: 建站小能手

導讀:1建站知識where條件順序不同,性能不同,這個建議在Oracle11G版本還合適嗎,想提高性能的的朋友可以參考下哈網站優化seo培訓公司網站建設。

網站優化seo培訓公司網站建設昨天在書上看到SQL語句優化時,where條件順序不同,性能不同,這個建議在Oracle11G版本還合適嗎?方式1優于方式2? 方式1:

復制代碼 代碼如下:

select a.* from students s, class c where s.id = c.id s.id = 'xxxxxxxx'

方式2:

復制代碼 代碼如下:

select a.* from students s, class c where s.id = 'xxxxxxxx' s.id = c.id

10g中測試結果證明是一樣的。 Microsoft Windows [版本 5.2.3790] (C) 版權所有 1985-2003 Microsoft Corp. C:\Documents and Settings\Administrator>sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 5月 11 17:48:55 2013 Copyright (c) 1982, 2005, Oracle. All rights reserved. 連接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL> alter system flush shared_pool; 系統已更改。 SQL> alter system flush buffer_cache; 系統已更改。 SQL> set autotrace on; SQL> select * 2 from COUNTRIES c, 3 REGIONS r 4 where c.REGION_ID=r.REGION_ID and c.REGION_ID='4'; REGIONS r * 第 3 行出現錯誤: ORA-00942: 表或視圖不存在 SQL> select * 2 from hr.COUNTRIES c, 3 hr. 網站seo優化診斷工具REGIONS r 4 where c.REGION_ID=r.REGION_ID and c.REGION_ID='4'; CO COUNTRY_NAME REGION_ID REGION_ID -- ---------------------------------------- ---------- ---------- REGION_NAME ------------------------- EG Egypt 4 4 Middle East and Africa IL Israel 4 4 Middle East and Africa KW Kuwait 4 4 Middle East and Africa CO COUNTRY_NAME REGION_ID REGION_ID -- ---------------------------------------- ---------- ---------- REGION_NAME ------------------------- NG Nigeria 4 4 Middle East and Africa ZM Zambia 4 4 Middle East and Africa ZW Zimbabwe 4 4 Middle East and Africa 已選擇6行。 執行計劃 ---------------------------------------------------------- Plan hash value: 4030513296 -------------------------------------------------------------------------------- ---------------- | Id | Operation | Name | Rows | Bytes | Cost (% CPU)| Time | -------------------------------------------------------------------------------- ---------------- | 0 | SELECT STATEMENT | | 6 | 168 | 2 (0)| 00:00:01 | | 1 | NESTED LOOPS | | 6 | 168 | 2 (0)| 00:00:01 | | 2 | TABLE ACCESS BY INDEX ROWID| REGIONS | 1 | 14 | 1 (0)| 00:00:01 | |* 3 | INDEX UNIQUE SCAN | REG_ID_PK | 1 | | 0 (0)| 00:00:01 | |* 4 | INDEX FULL SCAN | COUNTRY_C_ID_PK | 6 | 84 | 1 (0)| 00:00:01 | -------------------------------------------------------------------------------- ---------------- Predicate Information (identified by operation id): --------------------------------------------------- 3 - access("R"."REGION_ID"=4) 4 - filter("C"."REGION_ID"=4) 統計信息 -------------------網站建設多少錢--------------------------------------- 628 recursive calls 0 db block gets 127 consistent gets 20 physical reads 0 redo size 825 bytes sent via SQL*Net to client 385 bytes received via SQL*Net from client 2 SQL*Net roundtrips to/fr網站seo優化課程om client 13 sorts (memory) 0 sorts (disk) 6 rows processed SQL> ############# SQL> alter system flush shared_pool; 系統已更改。 SQL> alter system flush buffer_cache; 系統已更改。 select * from hr.COUNTRIES c, hr. REGIONS r where c.REGION_ID='4' 6 and c.REGION_ID=r.REGION_ID; CO COUNTRY_NAME REGION_ID REGION_ID -- ---------------------------------------- ---------- ---------- REGION_NAME ------------------------- EG Egypt 4 4 Middle East and Africa IL Israel 4 4 Middle East and Africa KW Kuwait 4 4 Middle East and Africa CO COUNTRY_NAME REGION_ID REGION_ID -- ---------------------------------------- ---------- ---------- REGION_NAME ------------------------- NG Nigeria 4 4 Middle East and Africa ZM Zambia 4 4 Middle East and Africa ZW Zimbabwe 4 4 Middle East and Africa 已選擇6行。 執行計劃 ---------------------------------------------------------- Plan hash value: 4030513296 -------------------------------------------------------------------------------- ---------------- | Id | Operation | Name | Rows | Bytes | Cost (% CPU)| Time | -------------------------------------------------------------------------------- ---------------- | 0 | SELECT STATEMENT | | 6 | 168 | 2 (0)| 00:00:01 | | 1 | NESTED LOOPS | | 6 | 168 | 2 (0)| 00:00:01 | | 2 | TABLE ACCESS BY INDEX ROWID| REGIONS | 1 | 14 | 1 (0)| 00:00:01 | |* 3 | INDEX UNIQUE SCAN | REG_ID_PK | 1 | | 0 (0)| 00:00:01 | |* 4 | INDEX FULL SCAN | COUNTRY_C_ID_PK | 6 | 84 | 1 (0)| 00:00:01 | -------------------------------------------------------------------------------- ---------------- Predicate Information (identified by operation id): --------------------------------------------------- 3 - access("R"."REGION_ID"=4) 4 - filter("C"."REGION_ID"=4) 統計信息 ---------------------------------------------------------- 656 recursive calls 0 db block gets 131 consistent gets 22 physical reads 0 redo size 825 bytes sent via SQL*Net to client 385 bytes received via SQL*Net from client 2 SQL*Net roundtrips to/from client 13 sorts (memory) 0 sorts (disk) 6 rows processed SQL>相關網站優化seo培訓公司網站建設。

關鍵詞標簽: 不同 示例

聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-24 ,文章where條件順序不同、性能不同示例探討建站知識主要講述不同,示例,where條件順序不同、性能不同示例探討網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_6751.html

我的IDC 網站建設技術SEOUC.COM
專注網站建設,SEO優化,小程序設計制作搭建開發定制網站等,數千家網站定制開發案例,網站推廣技術服務。
  • 5000+合作客服
  • 8年從業經驗
  • 150+覆蓋行業
  • 最新熱門源碼技術文章

    主站蜘蛛池模板: 华坪县| 廉江市| 嘉兴市| 景东| 京山县| 沾益县| 营口市| 巴林左旗| 景德镇市| 荥经县| 淳安县| 平定县| 建德市| 乌拉特后旗| 普兰县| 通城县| 高平市| 罗江县| 阿拉善右旗| 玉屏| 苍山县| 久治县| 宜丰县| 仁寿县| 绿春县| 兰州市| 黄大仙区| 永康市| 宜丰县| 自治县| 高邑县| 扎兰屯市| 诸城市| 宁波市| 本溪市| 澜沧| 开阳县| 南漳县| 绍兴市| 屏东县| 大渡口区|