Oracle bulk updates using ODP.NET

前端 未结 2 1977

Looking at this example to do bulk inserts, I assumed using the same logic would work for updates. I tried to the following to see if it would work, and it does not:

<         


        
2条回答
  •  借酒劲吻你
    2021-01-22 18:11

    you cant pass a array as a parameter.

    What you can do is loop through your array and call the update for each position of the array (whihc wouldnt really be a "bulk" insert), or you can use something like:

    WHERE NAME in ("Test1", "Test2", "Test3", "Test4", "Test5") 
    

    and so on

提交回复
热议问题