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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -