Skip to content
Advertisement

Update Text Field on Multiple Rows Using Current Text In Field SQL

I have a table with a text field that imported with incorrect characters delimited by a space.

Expected Output

I need to run an update to remove all the text AFTER the space on a specific number of rows. I figured out a way to select the correct text, but I’m stuck on how to update in bulk.

Will return the correct string.

Any thoughts on how to update a specific set records with the respective text in each row?

Advertisement

Answer

You can put the logic in your select directly into an update:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement