Is there any function to replace words in ASE?
deepak
Try this:
SELECT str_replace( 'impossible', 'im',':)' )
select str_replace(original,search,replacement)
ASE does not have 'REPLACE' but 'str_replace' This will return varchar(LONG), you may have use cast to shrink it back down.
REPLACE ( original-string, search-string, replace-string )
SELECT REPLACE( 'abc,def,ghi,jkl', 'abc', 'xx' ) FROM products
来源:https://stackoverflow.com/questions/6547383/is-there-any-function-like-replace