sql - Replace doesn't work in Sybase -


i tried following in sybase

select chrgamt, replace(convert(varchar(255),chrgamt), '.', '') result paymentsummary 

but gives below error in isql

incorrect syntax near keyword 'replace'. 

what possible reason

thanks

assuming there 1 decimal point, can way:

   stuff(convert(varchar(255), chrgamt),          charindex('.', chrgamt),          1, null) 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -