merge into t1 using t2 on ...簡單介紹

當你基於一張表的數據,去對另外一張的數據進行更新或者添加操做時,merge into 關鍵詞的用處就體現了。sql merge into 的基本語法:merge into table1 using table2 on(條件) when macthed then 操做1 when not matched then 操做2。大概意思是基於table2,對於table1進行操做,當條件知足時,進行操做
相關文章
相關標籤/搜索