such as引導的3種句子詳細解釋
我來解釋。
首先說一下,這是一個定語從句。你說為什么不用 which 或者 that ,這
是因為在英語的定語從句的語法中規定,先行詞被 such ,the same 修飾,關系
代詞要用 as , 為的就是避免于 such 。that 的句型混淆。
such as 連在一起用是例如,用于舉例,但是初中也學過
so /such 。that 。 如此。 以至。的句型吧? 這是一個結果狀語
句型,其中 that 充當從句的引導詞,不充當句子的成分,。試比較:
It wasn't such a good job (as ) she had read about in the
advertisement 這不是一個象她在廣告上讀得那么好的工作。(as 在后面
句子中充當 read about 的賓語)
It was such a good job that she wanted to do it heart and soul.這工作
這么好以至她很想全心全意地去做。(that 不充當句子成分)
因此,不能填上 that /which.
sql語句中as的意思是什么
sql語句中as的意思是別名,或者說給顯示的結果改名。比如,select name as 姓名 from student.
意思是查詢student表中的name字段,但是在顯示的時候顯示姓名(而不是表中的name)
還比如下面:concat(path,',',id)函數用","把前后字段【path和id】連接起來形成一個新字段 改名為fullpath
select id,catename,path,concat(path,',',id) as fullpath from likecate where 1 order by fullpath asc.
擴展資料:
as 一般用在兩個地方,一個是query的時候,用來重新指定返回的column(列) 名字
如:一個table 有個column叫 id, 我們的query是
select id from table1. 但是如果你不想叫id了,就可以重新命名,如叫 systemID 就可以這樣寫
select id as systemId from table1;
還有一個用法就是在create table 或 procedure 的時候,as 是個關鍵字。
例如
create table test as select * from table1
這時候就會create 一個table test,他是完全copy 表table1里的全部數據。
create procdure name as (is)
begin
end;
具體可以參考 如何建立procedure。 這個時候 as 和is可以互換。
參考資料:搜狗百科-sql語句