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)
 Char replacement within a column

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-05-03 : 10:45:50
Dave Fredericksen writes "Hi , I'm trying to remove a '-' from a field.
i.e.

BOARD NUMBER BOARD NUMBER
------------ -------------
200-300-900 200300900

how do I do this?
Thanks
Dave"

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-05-03 : 11:11:36
select replace('200-300-900 ', '-', '')

Duane.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2004-05-03 : 11:44:17
quote:
Originally posted by AskSQLTeam

Dave Fredericksen writes "Hi , I'm trying to remove a '-' from a field.



"a" means one.

Do you mean one or all?

If one, which one?



Brett

8-)
Go to Top of Page

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-05-03 : 12:13:23
quote:

BOARD NUMBER BOARD NUMBER
------------ -------------
200-300-900 200300900




looking at the example provided it seems like it is all.



Duane.
Go to Top of Page
   

- Advertisement -