Skip to content
Advertisement

SQL Server find and replace specific word in all rows of specific column

I have a table TblKit that has columns Id and Number. Id is primary key of type int and Number is varchar(50).

The data in the table looks like this:

I want to replace all the rows of KIT% with CH in the Number field. The desired output would look like:

I have tried this update query:

But it is not working.

Can anyone help me regarding this?

Advertisement

Answer

or simply this if you are sure that you have no values like this CKIT002

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