0

I have a table named LIST, can anyone please tell me how to replace all the data under the table LIST In sql server

3
  • can you describe more your question.... Commented Apr 5, 2012 at 6:01
  • 4
    You will need to be a bit more specific in what you are after. What exactly is it you want to do? What have you tried so far? What are you unable to find out? Commented Apr 5, 2012 at 6:01
  • Please provide more details, a table can contain many columns, do you want to replace data in one column or all the columns? what string you want to replace and with which string? Commented Apr 5, 2012 at 6:01

2 Answers 2

1

You can replace string in SQL table by following command

Update <tablename> SET <columnname> = '<newstring>' 

If you have any condition you can add following line after above line

where <condition>

Condition can be something like

columnname = 'sometext'
Sign up to request clarification or add additional context in comments.

Comments

0
UPDATE
    LIST
SET
    COLUMN1    =    'SOMETHING BESIDES WHAT IS CURRENTLY IN COLUMN1'

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.