Multiple SQL Update Statements in single query

后端 未结 6 1422
遥遥无期
遥遥无期 2020-12-17 16:23

I am in a situation where I am having to update about 12,000 items in my DB. Each row needs to mirror an excel file that I made previously. I have made the file that creates

6条回答
  •  [愿得一人]
    2020-12-17 16:46

    You can use the concatenate function in Excel to frame a query, All you need to do is to frame a single update query and drag the same for the rest

    concatenate("Update set =",,",where = ",,";")

    Use the above format and drag the cell till the end or double click on the bottom right corner for Auto fill of the Update statement. I beleive this is the shortest way possible and run it in a single Go.

提交回复
热议问题