Oracle Update and Return a Value

后端 未结 1 979
无人及你
无人及你 2020-12-18 01:46

I am having a Update Statement on a large volume table. It updates only one row at a time.

Update MyTable
Set Col1 = Value
wher         


        
1条回答
  •  情书的邮戳
    2020-12-18 02:39

    You can use the RETURNING keyword.

    Update MyTable
    Set Col1 = Value
    where primary key filters
    returning column1,column2...
    into variable1,variable2...
    

    0 讨论(0)
提交回复
热议问题