Efficient SQL UPDATE command for many rows

后端 未结 2 682
隐瞒了意图╮
隐瞒了意图╮ 2020-12-22 10:35

My problem is not one of \"Able to\", but \"able to quickly\"

I have a table with a static number of rows for which multiple items per row need to be updated frequen

2条回答
  •  青春惊慌失措
    2020-12-22 10:59

    If your sql server version is 2008+ then I recommend to create stored procedure and pass into this SP table valued parameter with all the data to update. This will perform much more quickly

提交回复
热议问题