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

with as 用法
–針對一個別名
with tmp as (select * from tb_name)
–針對多個別名
with
tmp as (select * from tb_name),
tmp2 as (select * from tb_name2),
tmp3 as (select * from tb_name3),
…
–相當于建了個e臨時表
with e as (select * from scott.emp e where e.empno=7499)
select * from e;
–相當于建了e、d臨時表
with
e as (select * from scott.emp),
d as (select * from scott.dept)
select * from e, d where e.deptno = d.deptno;
with是什么詞性 有哪些用法with,英語單詞,主要用作介詞、名詞,作介詞時意...
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.(對某人嚴...
2021-07-28
be kind with和to的區(qū)別兩者都是表示對……友善,但是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+賓語+賓語補足語,構成with的復合結構...
2021-05-31
be strict about/in/with的區(qū)別be strict about表達對某事很嚴格的意...
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的復合結構有幾種形式with的復合結構在英語中是比較常用的句式,通常由...
2021-03-22
點擊查看 大學動態(tài) 更多內容









