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
 General SQL Server Forums
 New to SQL Server Programming
 Updating a Character

Author  Topic 

Tuppers
Starting Member

12 Posts

Posted - 2005-12-12 : 12:04:21
is there a way to update an individual character?? i mean i want to update & to &??

Tuppers

Srinika
Master Smack Fu Yak Hacker

1378 Posts

Posted - 2005-12-12 : 12:17:54
Use Replace function with an Update
eg.
Update MyTbl set Myfield = Replace(Myfield,'&','&??')
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-12-12 : 13:35:43
I you only want to update a specific instance of '&' instead of all of them, check out the STUFF function.

Be One with the Optimizer
TG
Go to Top of Page

Tuppers
Starting Member

12 Posts

Posted - 2005-12-12 : 13:53:53
thanks for that chaps! got it! much appreciated for the help and all!!
Go to Top of Page
   

- Advertisement -