Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Update text in a table:column

Author  Topic 

mark_Bayliss
Starting Member

1 Post

Posted - 2007-11-01 : 06:27:45
Hey Everyone,

I have a table in SQL 2005. One of the columns called 'content' has about 400 rows with the same URL in it e.g. http://localhost. I wish to update/change this URL to another address. How do I go about doing this?

Regards,

Mark

elancaster
A very urgent SQL Yakette

1208 Posts

Posted - 2007-11-01 : 06:35:29

update urTable
set urColumn = '<new_value>'
where urColumn = 'http://localhost'

Em
Go to Top of Page
   

- Advertisement -