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 text in field value

Author  Topic 

imughal
Posting Yak Master

192 Posts

Posted - 2004-06-25 : 05:56:16
hi,

i want to replace text in select result. i have field amount which has data like

$562.35
$452.45
$532.57
$88.11
$582.10

i want result like that

562.35
452.45
532.57
88.11
582.10

means to remove the $ sign.

thanks

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2004-06-25 : 06:01:33
[code]
select replace('$562.35','$','')
[/code]
Go to Top of Page

ursonlyriyaz
Starting Member

2 Posts

Posted - 2004-06-25 : 12:24:38
Hi man,

just chk with this...

select substring(fieldname, 2, len(fieldname))
Go to Top of Page
   

- Advertisement -