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
Post a Comment