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

with as 用法
–針對(duì)一個(gè)別名
with tmp as (select * from tb_name)
–針對(duì)多個(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;
with是什么詞性 有哪些用法with,英語單詞,主要用作介詞、名詞,作介詞時(shí)意...
2021-09-11
be satisfied with和to的區(qū)別用法不同,一般是be satisfied with...
2021-09-01
connect to和connect with的區(qū)別connect to意思是使與…連接;使與…接通電...
2021-08-17
familiar to和familiar with的區(qū)別familiar with釋義:熟悉的;友好的,過...
2021-07-31
be strict with 和to的區(qū)別只有be strict with sb.(對(duì)某人嚴(yán)...
2021-07-28
be kind with和to的區(qū)別兩者都是表示對(duì)……友善,但是be kind to是...
2021-07-28
what to do with和how to deal with的區(qū)別what to do with和how to de...
2021-07-16
married to和married with的區(qū)別married to和married with的區(qū)...
2021-07-15
what's the matter with her還是shewhat's the matter with he...
2021-07-15
with表伴隨6種用法with+賓語+賓語補(bǔ)足語,構(gòu)成with的復(fù)合結(jié)構(gòu)...
2021-05-31
be strict about/in/with的區(qū)別be strict about表達(dá)對(duì)某事很嚴(yán)格的意...
2021-05-12
be careful with和be careful of的區(qū)別be careful of和be careful ...
2021-05-11
with pleasure和my pleasure的區(qū)別It's my pleasure,是回答別人的感謝...
2021-05-11
for和with的用法區(qū)別with一般有“和”的意思,如with sb.,但...
2021-04-21
with的復(fù)合結(jié)構(gòu)有幾種形式with的復(fù)合結(jié)構(gòu)在英語中是比較常用的句式,通常由...
2021-03-22
點(diǎn)擊查看 大學(xué)動(dòng)態(tài) 更多內(nèi)容









