Replace Character in the column

  • Hi,

    I am trying to replace the character I with 1 in one of our tables. For eg: I have a column that Registration Number for an Item = 'I23443fdd'. But the Value should be '123443fdd' (1 in place of I). there are lot of records like this...so I have to replace all the Values with I to 1.

    select * from tblRegNo where RegistrationNo like '%I%'

    I get around 1000 records. I have to replace all these with 1's. Is there any way I could get this done? Please advise me

    Thank you

  • UPDATE tblRegNo

    SET RegistrationNo = Replace(RegistrationNo, 'I', '1')

    WHERE RegistrationNo like '%I%'

    This is completed..

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply