Replacing an apostrophe with a space

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sc5502
    New Member
    • Jun 2014
    • 102

    Replacing an apostrophe with a space

    I want to replace an apostrophe with a space in a SQL field. I have tried this bit does not work:
    Code:
    Update [Record_Retention].[dbo].[Records]
    Set    contents = replace(contents, ''''', ' ')
    where status='Destroyed' and format='L';
    What am I doing wrong? Thanks
  • sc5502
    New Member
    • Jun 2014
    • 102

    #2
    Here is the answer

    update [Record_Retentio n].[dbo].[Records]
    set contents = replace(content s, '''', ' ')
    where format='L' and status='Destroy ed'

    Comment

    Working...