Edit selected rows manually in SQL Server

后端 未结 4 939
Happy的楠姐
Happy的楠姐 2021-02-04 01:02

I have a database in which some editing operations have to be done manually on some rows. I have the SQL Server Management Studio Express. In SSMS, to edit the rows, normally th

相关标签:
4条回答
  • 2021-02-04 01:19

    To expand on other answers, once you open the SQL pane and have edited the SQL, you can click Ctrl-R or click the "Execute SQL" button to actually execute the SQL

    0 讨论(0)
  • 2021-02-04 01:21

    After you have your 200 rows displayed for editing, you can also click on the "SQL" icon which will now be available above the Object Explorer. This is another way to have the SQL displayed which you can now edit as needed in order to change the desired rows.

    0 讨论(0)
  • 2021-02-04 01:22

    As you said, go for

    Select DB > Table > Right Click > Edit top 200 rows
    

    Now the window opens with the top 200 query and the results editable.

    Now change the query to the one with your where clause and hit F5

    0 讨论(0)
  • 2021-02-04 01:31

    Click edit rows on the table and then open the sql tab of that query and add your predicate there. And that's how you can edit filtered records.

    enter image description here

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