Update query -- Help needed!!!!!

  • Hi All:

    I need to help to update a varchar data to remove an single quote; currently I my sing_on field contains data as below

    HelenO'Connor

    JudithO'Keeffe

    KevinO'Neill

    MichelleO'Doherty

    MatthewO'Connor

    MatthewO'Donnell

    I want to remove the single quote within the sign_on field. I was using the following UPDATE statement, but this didn't work

    UPDATE EMPLOYEE

    SET SIGN_ON = REPLACE('%'+CHAR(39)+'%','')

    Any help is highly appreciated.

    Thnx/Rgds,

  • Try This......

    UPDATE EMPLOYEE SET SIGN_ON  = REPLACE(SIGN_ON ,'''','')

    WHERE SIGN_ON  LIKE '%''%'

    Sree

     

     

  • Thanks Sree this worked for me.. 🙂

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

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