Oracle bulk updates using ODP.NET

前端 未结 2 1976

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

    0 讨论(0)
  • 2021-01-22 18:27

    It turns out I had my parameter names flipped. Took me forever to find it.

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