久久精品一本到99热免费,亚洲国产日韩一区三区,精品国产综合二区亚洲,性欧美黑人性视频在线

    <sub id="qk7nk"><ol id="qk7nk"></ol></sub>
  1. 
    
  2. <legend id="qk7nk"></legend>

    <legend id="qk7nk"></legend>

    您的位置:首頁>大學(xué)生活>

    教育資訊:with as 用法

    WITH AS短語,也叫做子查詢部分(subquery factoring),可以讓你做很多事情,定義一個(gè)SQL片斷,該SQL片斷會(huì)被整個(gè)SQL語句所用到。有的時(shí)候,是為了讓SQL語句的可讀性更高些,也有可能是在UNION ALL的不同部分,作為提供數(shù)據(jù)的部分。

    with as 用法

    with as 用法

    –針對一個(gè)別名

    with tmp as (select * from tb_name)

    –針對多個(gè)別名

    with

    tmp as (select * from tb_name),

    tmp2 as (select * from tb_name2),

    tmp3 as (select * from tb_name3),

    –相當(dāng)于建了個(gè)e暫時(shí)表

    with e as (select * from scott.emp e where e.empno=7499)

    select * from e;

    –相當(dāng)于建了e、d暫時(shí)表

    with

    e as (select * from scott.emp),

    d as (select * from scott.dept)

    select * from e, d where e.deptno = d.deptno;

    來源:高三網(wǎng)

    能發(fā)現(xiàn)自己知識上的薄弱環(huán)節(jié),在上課前補(bǔ)上這部分的知識,不使它成為聽課時(shí)的“絆腳石”。這樣,就會(huì)順利理解新知識,相信通過with as 用法這篇文章能幫到你,在和好朋友分享的時(shí)候,也歡迎感興趣小伙伴們一起來探討。

    免責(zé)聲明:本文由用戶上傳,如有侵權(quán)請聯(lián)系刪除!