激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊(cè)有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應(yīng)
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補(bǔ)償
        全部產(chǎn)品
        您的位置: 網(wǎng)站首頁(yè) > 幫助中心>文章內(nèi)容

        Oracle左外聯(lián)和右外聯(lián)

        發(fā)布時(shí)間:  2012/8/13 16:49:06

        create or replace view V_WTK_ALL as

          select a.id, o.short as FindDeptName, u.realname as FindUserName, f.name as FindWay, o1.short as ProblemAtDeptName,

          z.name as szzz, a.yhnr, s.name as SSZY, k.name as kind, w.name as whhg, a.zgcs, a.zgfzr, a.plandate, a.finishdate,
        -
         

          u1.realname as jdr, u2.realname as fxr, a.yqzt, a.yqdate, a.wtkzt

          from WTK a, ORGANIZATION o, ORGANIZATION o1, OPERATORS u,OPERATORS u1,OPERATORS u2, Kind k, Findway f, SPfield s, SZZZ z, WHHG w

          where a.finddeptid =o.id(+) and a.problematdeptid=o1.id(+) and a.finduserid=u.id(+) and a.jdr=u1.id(+) and a.fxr=u2.id(+)

          and a.kindid=k.id(+) and a.findwayid=f.id(+) and a.spfieldid=s.id(+) and a.szzid =z.id(+) and a.whhgid=w.id(+)

          有兩個(gè)表

          table1

          user_id     user_name     user_pss

           1             aaa            a

           2             bbb            b

           3          ccc            c

          table2

          user_id     user_power

           1            111000

           2            000111

          使用sql語(yǔ)句查詢

          正常狀態(tài):

          select table1.user_id,

          table1.user_name,

          table2.user_power

          from table1,table2

          where table1.user_id = table2.user_id

          但是這樣檢索到的數(shù)據(jù)只有兩條:

          user_id     user_name      user_power

          1           aaa            000111

          2           bbb            111000

          輸入你想轉(zhuǎn)換的文字內(nèi)容,

          點(diǎn)擊下面按鈕進(jìn)行在線轉(zhuǎn)換。

          select table1.user_id,table1.user_name,table2.user_power

          from table1,table2

          where table1.user_id (+)= table2.user_id

          就可以得到如下的結(jié)果

          user_id     user_name      user_power

          1             aaa             000111

          2             bbb             111000

          3             ccc             (null)

          說(shuō)明﹐左或右連接查詢實(shí)際上是指定以哪個(gè)表的數(shù)據(jù)為準(zhǔn)﹐而默認(rèn)(不指定左或右連接)是以兩個(gè)表中都存在關(guān)鍵列的數(shù)據(jù)的為準(zhǔn)。

          內(nèi)部連接是兩個(gè)表中都必須有連接字段的對(duì)應(yīng)值的記錄,數(shù)據(jù)才能檢索出來(lái)

          左連接是只要左邊表中有記錄,數(shù)據(jù)就能檢索出來(lái),而右邊有的記錄必要在左邊表中有的記錄才能被檢索出來(lái)

          右連接是只要右邊表中有記錄,數(shù)據(jù)就能檢索出來(lái)


        本文出自:億恩科技【mszdt.com】

        服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經(jīng)營(yíng)性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經(jīng)營(yíng)性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經(jīng)營(yíng)性ICP/ISP證:贛B2-20080012
      9. 服務(wù)器/云主機(jī) 24小時(shí)售后服務(wù)電話:0371-60135900
      10. 虛擬主機(jī)/智能建站 24小時(shí)售后服務(wù)電話:0371-60135900
      11. 專注服務(wù)器托管17年
        掃掃關(guān)注-微信公眾號(hào)
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號(hào)總部企業(yè)基地億恩大廈  法律顧問(wèn):河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號(hào)
          0
         
         
         
         

        0371-60135900
        7*24小時(shí)客服服務(wù)熱線