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
 neglects -

Author  Topic 

cwtriguns2002
Constraint Violating Yak Guru

272 Posts

Posted - 2007-10-08 : 05:19:12
hi again.

SSS has a value of 123-456-789

my goal is, i want to return a value of 123456789. neglecting -

thanks

RON
________________________________________________________________________________________________
"I won't last a day without SQL"




khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-10-08 : 05:25:23
[code]replace('123-456-789', '-', '')[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-08 : 05:27:43
SELECT REPLACE(SSN, '-', '')
FROM Table1




E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-08 : 05:27:55




E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -