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)
 Appending characters to all values in a column

Author  Topic 

smd978
Starting Member

3 Posts

Posted - 2008-10-23 : 13:43:01
Hi,

I have a column which needs to be updated by appending a set of characters ("123") to the end of that value. How would I accomplish this? Thanks.

smd978
Starting Member

3 Posts

Posted - 2008-10-23 : 13:44:48
Just to clarify, I would like to update ALL the values in that column.
Go to Top of Page

hanbingl
Aged Yak Warrior

652 Posts

Posted - 2008-10-23 : 13:51:21
update tab1
set col1 = col1+'123'
Go to Top of Page

smd978
Starting Member

3 Posts

Posted - 2008-10-23 : 14:04:07
So simple...Works like a charm! Thanks!
Go to Top of Page
   

- Advertisement -