• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • oracle Merge使用小結 編輯

    發表于:2012-11-07來源:Csdn作者:littlechang點擊數: 標簽:oracle
    使用Merge也有一段時間了,現把Merge的用法進行簡單的總結: [sql] view plaincopyMerge into 數據表 別名

      使用Merge也有一段時間了,現把Merge的用法進行簡單的總結:

      [sql] view plaincopyMerge into 數據表 別名

      using (表名、視圖或查詢語句)

      on (條件)

      when matched then --匹配上后

      update ...

      [where ...] --where條件可選

      when not matched then

      insert [(字段列表)] --字段列表可選

      values (值列表) -- 有字段列表時,和字段列表匹配,無列表時按數據表順序列出全部字段對應的值

      [where ...] --where條件可選

      要注意的是:

      1、無論是update,還是insert,命令后都不跟表名,執行對象為merge后的表名

      2、update和insert后的where條件如果一樣,則可以寫到on條件中;如果update和insert后的where條件不一樣,就只能分開寫了。

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>