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 2000 Forums
 Transact-SQL (2000)
 Replace a comma...

Author  Topic 

brendalisalowe
Constraint Violating Yak Guru

269 Posts

Posted - 2004-09-10 : 17:14:59
I am trying to take out this comma. How do you do it?

This doesn't work:

SELECT REPLACE(1,563.32,',',"")

Brenda

drymchaser
Aged Yak Warrior

552 Posts

Posted - 2004-09-10 : 17:16:40
SELECT REPLACE('1,563.32',',','')
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-09-10 : 17:17:44
DECLARE @number varchar(10)

SET @number = '1,563.32'

SELECT REPLACE(@number,',','')

Tara
Go to Top of Page
   

- Advertisement -