Merge into 詳細介紹

2021-06-04 20:18:01 字數 415 閱讀 2177

merge語句是oracle9i新增的語法,用來合併update和insert語句。

通過merge語句,根據一張表或子查詢的連線條件對另外一張表進行查詢,

連線條件匹配上的進行update,無法匹配的執行insert。

這個語法僅需要一次全表掃瞄就完成了全部工作,執行效率要高於insert+update。

*//*語法:

merge [into [schema .] table [t_alias]

using [schema .] [t_alias]

on ( condition )

when matched then merge_update_clause

when not matched then merge_insert_clause;

本文**:

robots txt詳細介紹

robots.txt基本介紹 當乙個搜尋機械人 有的叫搜尋蜘蛛 訪問乙個站點時,它會首先檢查該站點根目錄下是否存在robots.txt,如果存在,搜尋機械人就會按照該檔案中的內容來確定訪問的範圍 如果該檔案不存在,那麼搜尋機械人就沿著鏈結抓取。另外,robots.txt必須放置在乙個站點的根目錄下,...

nginx phases 詳細介紹

我們知道,nginx 請求分為下面幾個階段 下面對這些過程詳細介紹 一 ngx http post read phase do nothing 二 ngx http server rewrite phase do nothing 三 ngx http find config phase 根據請求的位...

NSString詳細介紹

字串是程式設計最常用的資料型別之一了。在mac iphone程式設計中,蘋果為我們提供了乙個不同的字串型別nsstring。有別與普通的string為資料型別,nsstring其實是乙個物件型別。nsstring是nsobject cocoa foundation的基礎物件 的子類,所以具有nsob...