May 7, 2007 at 8:22 pm
Can any one post an example of how to use Replace method for replacing values of a column?
Address columns has commas to be replaced by a space.
Select LastName, FirstName, Address
from tblEmployee
May 7, 2007 at 8:39 pm
Actually you could just press F1 and type REPLACE in index keyword box.
Would get answer much faster.
REPLACE(AddressString, ',', ' ')
_____________
Code for TallyGenerator
May 8, 2007 at 5:01 am
but how i can pass the address value? from address column in table.
have more than 300 rows.
May 8, 2007 at 5:46 am
UPDATE Table1
SET Col1 = REPLACE(Col1, ',', ' ')
N 56°04'39.16"
E 12°55'05.25"
May 8, 2007 at 8:00 am
May 8, 2007 at 8:07 am
If this is a varchar col, this won't help. '' and ' ' are the same.
Can you give a sample of the before and after items in the table?
Both Peter and Jules have given you the right idea.
May 8, 2007 at 11:15 am
thanks everyone for replies. update column worked perfectly.
Thank you peter.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply