Find and replace

  • Hi....

    Sorry for the very obvious question, but is there a simple way to find and replace text within a varchar column?

    I am referring to a script within this column that has changed from classic asp to .net and just need to change the file extension referred to

  • very simple:

    update some_table set somecolumn=replace(somecolumn,'.txt','.csv')

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

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