问题
Is there any function to replace words in ASE?
回答1:
Try this:
SELECT str_replace( 'impossible', 'im',':)' )
回答2:
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.
回答3:
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