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
 SQL Server Development (2000)
 Replacing the values

Author  Topic 

hasanali00
Posting Yak Master

207 Posts

Posted - 2006-03-17 : 10:12:44
Hi

I have a table column with values like '12.30' or '132.00'
I want to insert these values into another table column.

But I want to remove the decimal point in those values, so '12.30' becomes '1230'

Is there a 'Replace' function in T-SQL that I can use to remove the decimal point. Or any other method??

regards

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-17 : 10:15:38

use replace(col,'.','')

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -